Interface ItemFrame

All Superinterfaces:
Attachable, CommandSender, Directional, Entity, Hanging, Metadatable, Permissible, ServerOperator

public interface ItemFrame
extends Hanging
Represents an Item Frame
  • Method Details

    • getItem

      ItemStack getItem()
      Get the item in this frame
      Returns:
      a defensive copy the item in this item frame
    • setItem

      void setItem​(ItemStack item)
      Set the item in this frame
      Parameters:
      item - the new item
    • getRotation

      Rotation getRotation()
      Get the rotation of the frame's item
      Returns:
      the direction
    • setRotation

      void setRotation​(Rotation rotation) throws java.lang.IllegalArgumentException
      Set the rotation of the frame's item
      Parameters:
      rotation - the new rotation
      Throws:
      java.lang.IllegalArgumentException - if rotation is null