public interface Minecart extends Vehicle
Entity.Spigot
Modifier and Type | Method and Description |
---|---|
double |
getDamage()
Gets a minecart's damage.
|
@NotNull Vector |
getDerailedVelocityMod()
Gets the derailed velocity modifier.
|
@NotNull MaterialData |
getDisplayBlock()
Gets the display block for this minecart.
|
@NotNull BlockData |
getDisplayBlockData()
Gets the display block for this minecart.
|
int |
getDisplayBlockOffset()
Gets the offset of the display block.
|
@NotNull Vector |
getFlyingVelocityMod()
Gets the flying velocity modifier.
|
double |
getMaxSpeed()
Gets the maximum speed of a minecart.
|
@NotNull Material |
getMinecartMaterial()
Gets the
Material that represents this Minecart type. |
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(@NotNull Vector derailed)
Sets the derailed velocity modifier.
|
void |
setDisplayBlock(@Nullable MaterialData material)
Sets the display block for this minecart.
|
void |
setDisplayBlockData(@Nullable BlockData blockData)
Sets the display block for this minecart.
|
void |
setDisplayBlockOffset(int offset)
Sets the offset of the display block.
|
void |
setFlyingVelocityMod(@NotNull 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, setVelocity
addPassenger, addScoreboardTag, asHoverEvent, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInBubbleColumn, isInLava, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isTicking, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, spigot, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage
audience, audience, clearTitle, empty, hideBossBar, openBook, openBook, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, showBossBar, showTitle, stopSound, toAudience
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
customName, customName, getCustomName, setCustomName
getPersistentDataContainer
void setDamage(double damage)
damage
- over 40 to "kill" a minecartdouble getDamage()
double getMaxSpeed()
void setMaxSpeed(double speed)
speed
- The max speedboolean isSlowWhenEmpty()
void setSlowWhenEmpty(boolean slow)
slow
- Whether it will decelerate faster@NotNull @NotNull Vector getFlyingVelocityMod()
void setFlyingVelocityMod(@NotNull @NotNull Vector flying)
flying
- velocity modifier vector@NotNull @NotNull Vector getDerailedVelocityMod()
A derailed minecart's velocity is multiplied by this factor each tick.
void setDerailedVelocityMod(@NotNull @NotNull Vector derailed)
derailed
- visible speedvoid setDisplayBlock(@Nullable @Nullable MaterialData material)
material
- the material to set as display block.@NotNull @NotNull MaterialData getDisplayBlock()
void setDisplayBlockData(@Nullable @Nullable BlockData blockData)
blockData
- the material to set as display block.@NotNull @NotNull BlockData getDisplayBlockData()
void setDisplayBlockOffset(int offset)
offset
- the block offset to set for this minecart.int getDisplayBlockOffset()
Copyright © 2021. All rights reserved.