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, preset
Fields 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 TypeMethodDescriptionvoid
delete
(org.bukkit.Location l) Deprecated.void
dropItems
(org.bukkit.Location l, int... slots) This method drops the contents of thisBlockMenu
on the ground at the givenLocation
.org.bukkit.block.Block
getBlock()
org.bukkit.Location
void
reload()
Reload thisBlockMenu
based on itsBlockMenuPreset
.void
save
(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, replaceExistingItem
Methods 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, unlock
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 thisBlockMenu
based 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 thisBlockMenu
on the ground at the givenLocation
.- Parameters:
l
- Where to drop these itemsslots
- The slots of items that should be dropped
-
delete
Deprecated.
-