Class AbstractMinecartMeta
java.lang.Object
net.minestom.server.entity.metadata.EntityMeta
net.minestom.server.entity.metadata.AbstractVehicleMeta
net.minestom.server.entity.metadata.minecart.AbstractMinecartMeta
- All Implemented Interfaces:
ObjectDataProvider
- Direct Known Subclasses:
AbstractMinecartContainerMeta
,CommandBlockMinecartMeta
,FurnaceMinecartMeta
,MinecartMeta
,SpawnerMinecartMeta
,TntMinecartMeta
public abstract class AbstractMinecartMeta
extends AbstractVehicleMeta
implements ObjectDataProvider
-
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
boolean
boolean
void
setCustomBlockIdAndDamage
(int value) void
setCustomBlockYPosition
(int value) void
setShowCustomBlock
(boolean show) Methods inherited from class net.minestom.server.entity.metadata.AbstractVehicleMeta
getShakingDirection, getShakingMultiplier, getShakingTicks, setShakingDirection, setShakingMultiplier, setShakingTicks
Methods inherited from class net.minestom.server.entity.metadata.EntityMeta
consumeEntity, getAirTicks, getCustomName, getPose, getTickFrozen, isCustomNameVisible, isFlyingWithElytra, isHasGlowingEffect, isHasNoGravity, isInvisible, isOnFire, isSilent, isSneaking, isSprinting, isSwimming, setAirTicks, setCustomName, setCustomNameVisible, setFlyingWithElytra, setHasGlowingEffect, setHasNoGravity, setInvisible, 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
-
Constructor Details
-
AbstractMinecartMeta
protected AbstractMinecartMeta(@NotNull @NotNull Entity entity, @NotNull @NotNull MetadataHolder metadata)
-
-
Method Details
-
getCustomBlockIdAndDamage
public int getCustomBlockIdAndDamage() -
setCustomBlockIdAndDamage
public void setCustomBlockIdAndDamage(int value) -
getCustomBlockYPosition
public int getCustomBlockYPosition() -
setCustomBlockYPosition
public void setCustomBlockYPosition(int value) -
getShowCustomBlock
public boolean getShowCustomBlock() -
setShowCustomBlock
public void setShowCustomBlock(boolean show) -
requiresVelocityPacketAtSpawn
public boolean requiresVelocityPacketAtSpawn()- Specified by:
requiresVelocityPacketAtSpawn
in interfaceObjectDataProvider
-