Interface ItemFrame

    • Method Detail

      • 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
      • setItem

        void setItem​(ItemStack item,
                     boolean playSound)
        Set the item in this frame
        Parameters:
        item - the new item
        playSound - whether or not to play the item placement sound
      • getRotation

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