Package net.glowstone.inventory
Class GlowBeaconInventory
java.lang.Object
net.glowstone.inventory.GlowInventory
net.glowstone.inventory.GlowBeaconInventory
- All Implemented Interfaces:
Iterable<org.bukkit.inventory.ItemStack>
,org.bukkit.inventory.BeaconInventory
,org.bukkit.inventory.Inventory
public class GlowBeaconInventory
extends GlowInventory
implements org.bukkit.inventory.BeaconInventory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStack
getItem()
boolean
itemPlaceAllowed
(int slot, org.bukkit.inventory.ItemStack stack) Check whether it is allowed for a player to insert the given ItemStack at the slot, regardless of the slot's current contents.void
setActiveEffects
(int primaryId, int secondaryId) void
setItem
(org.bukkit.inventory.ItemStack itemStack) Methods inherited from class net.glowstone.inventory.GlowInventory
addItem, addItemStack, addViewer, all, all, clear, clear, close, consumeItem, consumeItem, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getHolder, getItem, getLocation, getMaxStackSize, getRawSlots, getSize, getSlot, getSlots, getSlotType, getStorageContents, getTitle, getType, getViewers, getViewersSet, handleShiftClick, initialize, isEmpty, itemShiftClickAllowed, iterator, iterator, remove, remove, removeItem, removeItemAnySlot, removeItemStack, removeViewer, 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, 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
-
GlowBeaconInventory
public GlowBeaconInventory(org.bukkit.block.Beacon owner)
-
-
Method Details
-
setActiveEffects
public void setActiveEffects(int primaryId, int secondaryId) -
setItem
public void setItem(org.bukkit.inventory.ItemStack itemStack) - Specified by:
setItem
in interfaceorg.bukkit.inventory.BeaconInventory
-
getItem
public org.bukkit.inventory.ItemStack getItem()- Specified by:
getItem
in interfaceorg.bukkit.inventory.BeaconInventory
-
itemPlaceAllowed
public boolean itemPlaceAllowed(int slot, org.bukkit.inventory.ItemStack stack) Description copied from class:GlowInventory
Check whether it is allowed for a player to insert the given ItemStack at the slot, regardless of the slot's current contents.Should return false for crafting output slots or armor slots which cannot accept the given item.
- Overrides:
itemPlaceAllowed
in classGlowInventory
- Parameters:
slot
- The slot number.stack
- The stack to add.- Returns:
- Whether the stack can be added there.
-