Class FallingBlockMeta
java.lang.Object
net.minestom.server.entity.metadata.EntityMeta
net.minestom.server.entity.metadata.other.FallingBlockMeta
- All Implemented Interfaces:
ObjectDataProvider
-
Field Summary
Fields inherited from class net.minestom.server.entity.metadata.EntityMeta
metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull Block
getBlock()
int
boolean
void
Sets which block to display.void
setSpawnPosition
(Point 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
-
Field Details
-
OFFSET
public static final byte OFFSET- See Also:
-
MAX_OFFSET
public static final byte MAX_OFFSET- See Also:
-
-
Constructor Details
-
FallingBlockMeta
-
-
Method Details
-
getSpawnPosition
-
setSpawnPosition
-
getBlock
-
setBlock
Sets which block to display. This is possible only before spawn packet is sent.- Parameters:
block
- which block to display.
-
getObjectData
public int getObjectData()- Specified by:
getObjectData
in interfaceObjectDataProvider
-
requiresVelocityPacketAtSpawn
public boolean requiresVelocityPacketAtSpawn()- Specified by:
requiresVelocityPacketAtSpawn
in interfaceObjectDataProvider
-