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

public class ItemFrameMeta extends EntityMeta implements ObjectDataProvider
  • Field Details

  • Constructor Details

    • ItemFrameMeta

      public ItemFrameMeta(@NotNull @NotNull Entity entity, @NotNull @NotNull Metadata metadata)
  • Method Details

    • getItem

      @NotNull public @NotNull ItemStack getItem()
    • setItem

      public void setItem(@NotNull @NotNull ItemStack value)
    • getRotation

      @NotNull public @NotNull Rotation getRotation()
    • setRotation

      public void setRotation(@NotNull @NotNull Rotation value)
    • getOrientation

      @NotNull public @NotNull ItemFrameMeta.Orientation getOrientation()
    • setOrientation

      public void setOrientation(@NotNull @NotNull ItemFrameMeta.Orientation orientation)
      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 interface ObjectDataProvider
    • requiresVelocityPacketAtSpawn

      public boolean requiresVelocityPacketAtSpawn()
      Specified by:
      requiresVelocityPacketAtSpawn in interface ObjectDataProvider