public class GlowBeaconInventory extends GlowInventory implements org.bukkit.inventory.BeaconInventory
Constructor and Description |
---|
GlowBeaconInventory(org.bukkit.block.Beacon owner) |
Modifier and Type | Method and Description |
---|---|
org.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) |
addItem, addItemStack, addViewer, all, all, all, clear, clear, consumeItem, consumeItem, contains, contains, contains, contains, contains, contains, containsAtLeast, first, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getName, getRawSlots, getSize, getSlot, getSlots, getSlotType, getStorageContents, getTitle, getType, getViewers, getViewersSet, handleShiftClick, initialize, itemShiftClickAllowed, iterator, iterator, remove, remove, remove, removeItem, removeItemStack, removeViewer, setContents, setItem, setMaxStackSize, setStorageContents, setTitle, toString, tryToFillSlots
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addItem, all, all, all, clear, clear, contains, contains, contains, contains, contains, contains, containsAtLeast, first, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getName, getSize, getStorageContents, getTitle, getType, getViewers, iterator, iterator, remove, remove, remove, removeItem, setContents, setItem, setMaxStackSize, setStorageContents
forEach, spliterator
public void setActiveEffects(int primaryId, int secondaryId)
public void setItem(org.bukkit.inventory.ItemStack itemStack)
setItem
in interface org.bukkit.inventory.BeaconInventory
public org.bukkit.inventory.ItemStack getItem()
getItem
in interface org.bukkit.inventory.BeaconInventory
public boolean itemPlaceAllowed(int slot, org.bukkit.inventory.ItemStack stack)
GlowInventory
Should return false for crafting output slots or armor slots which cannot accept the given item.
itemPlaceAllowed
in class GlowInventory
slot
- The slot number.stack
- The stack to add.Copyright © 2021. All rights reserved.