|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBaseEntity
BaseVehicle
Minecart
public class Minecart extends BaseVehicle
Minecart - Used for manipulating minecarts
Modifier and Type | Class and Description |
---|---|
static class |
Minecart.Type
Type of minecart |
Constructor and Description |
---|
Minecart(double x,
double y,
double z,
Minecart.Type type)
Create a new Minecart at the given position |
Minecart(lw o)
Creates an interface for minecart. |
Modifier and Type | Method and Description |
---|---|
int |
getDamage()
Returns damage for mineentity |
lw |
getEntity()
Returns the entity we're wrapping. |
StorageMinecart |
getStorage()
Returns the storage for this minecart. |
Minecart.Type |
getType()
Returns the type of this minecart. |
void |
setDamage(int damage)
Set damage on Mineentity |
Methods inherited from class BaseVehicle |
---|
destroy, getMotionX, getMotionY, getMotionZ, getPassenger, isEmpty, setMotion, setMotionX, setMotionY, setMotionZ |
Methods inherited from class BaseEntity |
---|
getAirTicks, getBaseAirTicks, getFireTicks, getId, getNoDamageTicks, getPitch, getPlayer, getRotation, getX, getY, getZ, isAnimal, isLiving, isMob, isPlayer, setAirTicks, setBaseAirTicks, setFireTicks, setNoDamageTicks, setPitch, setRotation, setX, setY, setZ, teleportTo, teleportTo, teleportTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Minecart(lw o)
o
- public Minecart(double x, double y, double z, Minecart.Type type)
x
- y
- z
- Type
- 0=Minecart, 1=StorageCart, 2=PoweredMinecartMethod Detail |
---|
public lw getEntity()
getEntity
in class BaseEntity
public void setDamage(int damage)
damage
- over 40 and you "kill" the mineentitypublic int getDamage()
public Minecart.Type getType()
public StorageMinecart getStorage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |