public interface Minecart extends Entity
| Modifier and Type | Method and Description |
|---|---|
double |
getDamage()
Gets a minecart's damage.
|
int |
getDisplayBlockOffset()
Gets the offset of the display block.
|
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(double damage)
Sets a minecart's damage.
|
void |
setDisplayBlockOffset(int offset)
Sets the offset of the display block.
|
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
|
ensureAndGet, get, getBoundingBox, getDirectionVector, getEntityId, getGamePosition, getHeight, getLevel, getMotion, getOffset, getPosition, getRotation, getServer, getTickCreated, getTicksLived, getUniqueId, getVehicle, getWidth, isAffectedByGravity, isAlive, isCustomNameVisible, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSneaking, leaveVehicle, providedComponents, provides, remove, setAffectedByGravity, setCustomNameVisible, setGlowing, setInvulnerable, setMotion, setPosition, setPositionFromSystem, setSneaking, setTickCreated, setTicksLived, teleport, teleport, teleportdouble getDamage()
void setDamage(double damage)
damage - over 40 to "kill" a minecartdouble getMaxSpeed()
void setMaxSpeed(double speed)
speed - The max speedboolean isSlowWhenEmpty()
void setSlowWhenEmpty(boolean slow)
slow - Whether it will decelerate fasterint getDisplayBlockOffset()
void setDisplayBlockOffset(int offset)
offset - the block offset to set for this minecart.Copyright © 2017–2018 NukkitX. All rights reserved.