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, tryToFillSlotsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddItem, 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, setStorageContentsforEach, spliteratorpublic void setActiveEffects(int primaryId,
int secondaryId)
public void setItem(org.bukkit.inventory.ItemStack itemStack)
setItem in interface org.bukkit.inventory.BeaconInventorypublic org.bukkit.inventory.ItemStack getItem()
getItem in interface org.bukkit.inventory.BeaconInventorypublic boolean itemPlaceAllowed(int slot,
org.bukkit.inventory.ItemStack stack)
GlowInventoryShould return false for crafting output slots or armor slots which cannot accept the given item.
itemPlaceAllowed in class GlowInventoryslot - The slot number.stack - The stack to add.Copyright © 2021. All rights reserved.