Package net.glowstone.inventory
Class GlowDoubleChestInventory
java.lang.Object
net.glowstone.inventory.GlowInventory
net.glowstone.inventory.GlowSuperInventory
net.glowstone.inventory.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 Summary
ConstructorDescriptionGlowDoubleChestInventory
(GlowChest first, GlowChest second) Creates an instance for the given double chest. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addViewer
(org.bukkit.entity.HumanEntity viewer) Add a viewer to the inventory.org.bukkit.block.DoubleChest
The owner of this inventory.@NotNull org.bukkit.inventory.Inventory
@NotNull org.bukkit.inventory.Inventory
void
removeViewer
(org.bukkit.entity.HumanEntity viewer) Remove a viewer from the inventory.Methods inherited from class net.glowstone.inventory.GlowSuperInventory
getParents, initialize, initialize
Methods inherited from class net.glowstone.inventory.GlowInventory
addItem, addItemStack, all, all, clear, clear, close, consumeItem, consumeItem, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getRawSlots, getSize, getSlot, getSlots, getSlotType, getStorageContents, getTitle, getType, getViewers, getViewersSet, handleShiftClick, initialize, isEmpty, itemPlaceAllowed, itemShiftClickAllowed, iterator, iterator, remove, remove, removeItem, removeItemAnySlot, removeItemStack, setContents, setItem, setMaxStackSize, setStorageContents, setTitle, toString, tryToFillSlots
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bukkit.inventory.Inventory
addItem, all, all, clear, clear, close, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getSize, getStorageContents, getType, getViewers, isEmpty, iterator, iterator, remove, remove, removeItem, removeItemAnySlot, setContents, setItem, setMaxStackSize, setStorageContents
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
GlowDoubleChestInventory
Creates an instance for the given double chest.- Parameters:
first
- the north or west half of the chestsecond
- the south or east half of the chest
-
-
Method Details
-
getLeftSide
@NotNull public @NotNull org.bukkit.inventory.Inventory getLeftSide()- Specified by:
getLeftSide
in interfaceorg.bukkit.inventory.DoubleChestInventory
-
getRightSide
@NotNull public @NotNull org.bukkit.inventory.Inventory getRightSide()- Specified by:
getRightSide
in interfaceorg.bukkit.inventory.DoubleChestInventory
-
getHolder
public org.bukkit.block.DoubleChest getHolder()Description copied from class:GlowInventory
The owner of this inventory.- Specified by:
getHolder
in interfaceorg.bukkit.inventory.DoubleChestInventory
- Specified by:
getHolder
in interfaceorg.bukkit.inventory.Inventory
- Overrides:
getHolder
in classGlowInventory
-
addViewer
public void addViewer(org.bukkit.entity.HumanEntity viewer) Description copied from class:GlowInventory
Add a viewer to the inventory.- Overrides:
addViewer
in classGlowInventory
- 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 classGlowInventory
- Parameters:
viewer
- The HumanEntity to remove.
-