|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBaseEntity
BaseVehicle
public class BaseVehicle extends BaseEntity
BaseVehicle - Base class for interfacing boats and minecarts
Constructor and Description |
---|
BaseVehicle()
Interface for vehicles. |
BaseVehicle(fe entity)
Creptes an interface for a vehicle |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys this vehicle |
double |
getMotionX()
Returns the x-motion of this vehicle |
double |
getMotionY()
Returns the y-motion of this vehicle |
double |
getMotionZ()
Returns the z-motion of this vehicle |
Player |
getPassenger()
Returns the passenger. |
boolean |
isEmpty()
Checks if this vehicle is empty (unoccupied) |
void |
setMotion(double motionX,
double motionY,
double motionZ)
Set vehicle motion |
void |
setMotionX(double motion)
Sets the x-motion of this vehicle |
void |
setMotionY(double motion)
Sets the y-motion of this vehicle |
void |
setMotionZ(double motion)
Sets the z-motion of this vehicle |
Methods inherited from class BaseEntity |
---|
getAirTicks, getBaseAirTicks, getEntity, 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 BaseVehicle(fe entity)
entity
- public BaseVehicle()
Method Detail |
---|
public double getMotionX()
public double getMotionY()
public double getMotionZ()
public void setMotionX(double motion)
motion
- motion to setpublic void setMotionY(double motion)
motion
- motion to setpublic void setMotionZ(double motion)
motion
- motion to setpublic void setMotion(double motionX, double motionY, double motionZ)
motionX
- motionY
- motionZ
- public void destroy()
public boolean isEmpty()
public Player getPassenger()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |