Class AbstractMinecartMeta
java.lang.Object
net.minestom.server.entity.metadata.EntityMeta
net.minestom.server.entity.metadata.minecart.AbstractMinecartMeta
- All Implemented Interfaces:
ObjectDataProvider
- Direct Known Subclasses:
AbstractMinecartContainerMeta
,CommandBlockMinecartMeta
,FurnaceMinecartMeta
,MinecartMeta
,SpawnerMinecartMeta
,TntMinecartMeta
-
Field Summary
Fields inherited from class net.minestom.server.entity.metadata.EntityMeta
metadata
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractMinecartMeta
(@NotNull Entity entity, @NotNull MetadataHolder metadata) -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
float
int
boolean
void
setCustomBlockIdAndDamage
(int value) void
setCustomBlockYPosition
(int value) void
setShakingDirection
(int value) void
setShakingMultiplier
(float value) void
setShakingPower
(int value) Methods inherited from class net.minestom.server.entity.metadata.EntityMeta
consumeEntity, getAirTicks, getCustomName, getMask, getMaskBit, getPose, getTickFrozen, isCustomNameVisible, isFlyingWithElytra, isHasGlowingEffect, isHasNoGravity, isInvisible, isOnFire, isSilent, isSneaking, isSprinting, isSwimming, setAirTicks, setCustomName, setCustomNameVisible, setFlyingWithElytra, setHasGlowingEffect, setHasNoGravity, setInvisible, setMask, setMaskBit, setNotifyAboutChanges, setOnFire, setPose, setSilent, setSneaking, setSprinting, setSwimming, setTickFrozen
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minestom.server.entity.metadata.ObjectDataProvider
getObjectData
-
Field Details
-
OFFSET
public static final byte OFFSET- See Also:
-
MAX_OFFSET
public static final byte MAX_OFFSET- See Also:
-
-
Constructor Details
-
AbstractMinecartMeta
protected AbstractMinecartMeta(@NotNull @NotNull Entity entity, @NotNull @NotNull MetadataHolder metadata)
-
-
Method Details
-
getShakingPower
public int getShakingPower() -
setShakingPower
public void setShakingPower(int value) -
getShakingDirection
public int getShakingDirection() -
setShakingDirection
public void setShakingDirection(int value) -
getShakingMultiplier
public float getShakingMultiplier() -
setShakingMultiplier
public void setShakingMultiplier(float value) -
getCustomBlockIdAndDamage
public int getCustomBlockIdAndDamage() -
setCustomBlockIdAndDamage
public void setCustomBlockIdAndDamage(int value) -
getCustomBlockYPosition
public int getCustomBlockYPosition() -
setCustomBlockYPosition
public void setCustomBlockYPosition(int value) -
requiresVelocityPacketAtSpawn
public boolean requiresVelocityPacketAtSpawn()- Specified by:
requiresVelocityPacketAtSpawn
in interfaceObjectDataProvider
-