|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Minecart
Represents a minecart entity.
Method Summary | |
---|---|
int |
getDamage()
Gets a minecart's damage. |
Vector |
getDerailedVelocityMod()
Gets the derailed velocity modifier. |
Vector |
getFlyingVelocityMod()
Gets the flying velocity modifier. |
double |
getMaxSpeed()
Gets the maximum speed of a minecart. |
boolean |
isSlowWhenEmpty()
Returns whether this minecart will slow down faster without a passenger occupying it |
void |
setDamage(int damage)
Sets a minecart's damage. |
void |
setDerailedVelocityMod(Vector derailed)
Sets the derailed velocity modifier. |
void |
setFlyingVelocityMod(Vector flying)
Sets the flying velocity modifier. |
void |
setMaxSpeed(double speed)
Sets the maximum speed of a minecart. |
void |
setSlowWhenEmpty(boolean slow)
Sets whether this minecart will slow down faster without a passenger occupying it |
Methods inherited from interface org.bukkit.entity.Vehicle |
---|
getVelocity, setVelocity |
Methods inherited from interface org.bukkit.entity.Entity |
---|
eject, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getWorld, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, teleport, teleport, teleport, teleport |
Methods inherited from interface org.bukkit.metadata.Metadatable |
---|
getMetadata, hasMetadata, removeMetadata, setMetadata |
Method Detail |
---|
void setDamage(int damage)
damage
- over 40 to "kill" a minecartint getDamage()
double getMaxSpeed()
void setMaxSpeed(double speed)
speed
- The max speedboolean isSlowWhenEmpty()
void setSlowWhenEmpty(boolean slow)
slow
- Whether it will decelerate fasterVector getFlyingVelocityMod()
void setFlyingVelocityMod(Vector flying)
flying
- velocity modifier vectorVector getDerailedVelocityMod()
void setDerailedVelocityMod(Vector derailed)
derailed
- visible speed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |