public interface Minecart extends Vehicle
Entity.Spigot| Modifier and Type | Method and Description |
|---|---|
int |
_INVALID_getDamage()
Deprecated.
|
void |
_INVALID_setDamage(int damage)
Deprecated.
|
double |
getDamage()
Gets a minecart's damage.
|
Vector |
getDerailedVelocityMod()
Gets the derailed velocity modifier.
|
MaterialData |
getDisplayBlock()
Gets the display block for this minecart.
|
int |
getDisplayBlockOffset()
Gets the offset of the display block.
|
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(double damage)
Sets a minecart's damage.
|
void |
setDerailedVelocityMod(Vector derailed)
Sets the derailed velocity modifier.
|
void |
setDisplayBlock(MaterialData material)
Sets the display block for this minecart.
|
void |
setDisplayBlockOffset(int offset)
Sets the offset of the display block.
|
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
|
getVelocity, setVelocityaddScoreboardTag, eject, getCustomName, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removeScoreboardTag, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, spigot, teleport, teleport, teleport, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessage, sendMessage, sendMessageaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentisOp, setOp@Deprecated void _INVALID_setDamage(int damage)
damage - over 40 to "kill" a minecartvoid setDamage(double damage)
damage - over 40 to "kill" a minecart@Deprecated int _INVALID_getDamage()
double 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()
A derailed minecart's velocity is multiplied by this factor each tick.
void setDerailedVelocityMod(Vector derailed)
derailed - visible speedvoid setDisplayBlock(MaterialData material)
material - the material to set as display block.MaterialData getDisplayBlock()
void setDisplayBlockOffset(int offset)
offset - the block offset to set for this minecart.int getDisplayBlockOffset()
Copyright © 2022. All rights reserved.