Class BlockMenu
java.lang.Object
city.norain.slimefun4.holder.SlimefunInventoryHolder
me.mrCookieSlime.CSCoreLibPlugin.general.Inventory.ChestMenu
me.mrCookieSlime.Slimefun.api.inventory.DirtyChestMenu
me.mrCookieSlime.Slimefun.api.inventory.BlockMenu
- All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder
-
Nested Class Summary
Nested classes/interfaces inherited from class me.mrCookieSlime.CSCoreLibPlugin.general.Inventory.ChestMenu
ChestMenu.AdvancedMenuClickHandler, ChestMenu.MenuClickHandler, ChestMenu.MenuCloseHandler, ChestMenu.MenuOpeningHandler -
Field Summary
Fields inherited from class me.mrCookieSlime.Slimefun.api.inventory.DirtyChestMenu
changes, presetFields inherited from class city.norain.slimefun4.holder.SlimefunInventoryHolder
inventory -
Constructor Summary
ConstructorsConstructorDescriptionBlockMenu(BlockMenuPreset preset, org.bukkit.Location l) BlockMenu(BlockMenuPreset preset, org.bukkit.Location l, io.github.bakedlibs.dough.config.Config cfg) Deprecated.BlockMenu(BlockMenuPreset preset, org.bukkit.Location l, org.bukkit.inventory.Inventory inv) BlockMenu(BlockMenuPreset preset, org.bukkit.Location l, org.bukkit.inventory.ItemStack[] contents) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(org.bukkit.Location l) Deprecated.voiddropItems(org.bukkit.Location l, int... slots) This method drops the contents of thisBlockMenuon the ground at the givenLocation.org.bukkit.block.BlockgetBlock()org.bukkit.Locationvoidreload()Reload thisBlockMenubased on itsBlockMenuPreset.voidsave(org.bukkit.Location l) Methods inherited from class me.mrCookieSlime.Slimefun.api.inventory.DirtyChestMenu
canOpen, close, consumeItem, consumeItem, consumeItem, fits, getPreset, getUnsavedChanges, hasViewer, isDirty, markDirty, open, pushItem, replaceExistingItem, replaceExistingItemMethods inherited from class me.mrCookieSlime.CSCoreLibPlugin.general.Inventory.ChestMenu
addItem, addItem, addMenuClickHandler, addMenuCloseHandler, addMenuOpeningHandler, addPlayerInventoryClickHandler, addViewer, build, contains, getContents, getItemInSlot, getMenuClickHandler, getMenuCloseHandler, getMenuOpeningHandler, getPlayerInventoryClickHandler, getSize, isEmptySlotsClickable, isPlayerInventoryClickable, isSizeAutomaticallyInferred, lock, locked, removeViewer, reset, setEmptySlotsClickable, setPlayerInventoryClickable, setSize, toInventory, unlockMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.inventory.InventoryHolder
getInventory
-
Constructor Details
-
BlockMenu
-
BlockMenu
@Deprecated public BlockMenu(BlockMenuPreset preset, org.bukkit.Location l, io.github.bakedlibs.dough.config.Config cfg) Deprecated. -
BlockMenu
public BlockMenu(BlockMenuPreset preset, org.bukkit.Location l, org.bukkit.inventory.ItemStack[] contents) -
BlockMenu
-
-
Method Details
-
save
public void save(org.bukkit.Location l) -
reload
public void reload()Reload thisBlockMenubased on itsBlockMenuPreset. -
getBlock
public org.bukkit.block.Block getBlock() -
getLocation
public org.bukkit.Location getLocation() -
dropItems
public void dropItems(org.bukkit.Location l, int... slots) This method drops the contents of thisBlockMenuon the ground at the givenLocation.- Parameters:
l- Where to drop these itemsslots- The slots of items that should be dropped
-
delete
Deprecated.
-