Class ItemFrameMeta
java.lang.Object
net.minestom.server.entity.metadata.EntityMeta
net.minestom.server.entity.metadata.other.ItemFrameMeta
- All Implemented Interfaces:
ObjectDataProvider
- Direct Known Subclasses:
GlowItemFrameMeta
-
Nested Class Summary
-
Field Summary
Fields inherited from class net.minestom.server.entity.metadata.EntityMeta
metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull ItemStack
getItem()
int
@NotNull ItemFrameMeta.Orientation
@NotNull Rotation
boolean
void
void
setOrientation
(@NotNull ItemFrameMeta.Orientation orientation) Sets orientation of the item frame.void
setRotation
(@NotNull Rotation 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
-
ItemFrameMeta
-
-
Method Details
-
getItem
-
setItem
-
getRotation
-
setRotation
-
getOrientation
-
setOrientation
Sets orientation of the item frame. This is possible only before spawn packet is sent.- Parameters:
orientation
- the orientation of the item frame.
-
getObjectData
public int getObjectData()- Specified by:
getObjectData
in interfaceObjectDataProvider
-
requiresVelocityPacketAtSpawn
public boolean requiresVelocityPacketAtSpawn()- Specified by:
requiresVelocityPacketAtSpawn
in interfaceObjectDataProvider
-