Class GlowDoubleChestInventory

All Implemented Interfaces:
Iterable<org.bukkit.inventory.ItemStack>, org.bukkit.inventory.DoubleChestInventory, org.bukkit.inventory.Inventory

public class GlowDoubleChestInventory extends GlowSuperInventory implements org.bukkit.inventory.DoubleChestInventory
  • Constructor Details

    • GlowDoubleChestInventory

      public GlowDoubleChestInventory(GlowChest first, GlowChest second)
      Creates an instance for the given double chest.
      Parameters:
      first - the north or west half of the chest
      second - the south or east half of the chest
  • Method Details

    • getLeftSide

      @NotNull public @NotNull org.bukkit.inventory.Inventory getLeftSide()
      Specified by:
      getLeftSide in interface org.bukkit.inventory.DoubleChestInventory
    • getRightSide

      @NotNull public @NotNull org.bukkit.inventory.Inventory getRightSide()
      Specified by:
      getRightSide in interface org.bukkit.inventory.DoubleChestInventory
    • getHolder

      public org.bukkit.block.DoubleChest getHolder()
      Description copied from class: GlowInventory
      The owner of this inventory.
      Specified by:
      getHolder in interface org.bukkit.inventory.DoubleChestInventory
      Specified by:
      getHolder in interface org.bukkit.inventory.Inventory
      Overrides:
      getHolder in class GlowInventory
    • addViewer

      public void addViewer(org.bukkit.entity.HumanEntity viewer)
      Description copied from class: GlowInventory
      Add a viewer to the inventory.
      Overrides:
      addViewer in class GlowInventory
      Parameters:
      viewer - The HumanEntity to add.
    • removeViewer

      public void removeViewer(org.bukkit.entity.HumanEntity viewer)
      Description copied from class: GlowInventory
      Remove a viewer from the inventory.
      Overrides:
      removeViewer in class GlowInventory
      Parameters:
      viewer - The HumanEntity to remove.