Package city.norain.slimefun4.api.menu
Class UniversalMenuPreset
java.lang.Object
city.norain.slimefun4.holder.SlimefunInventoryHolder
me.mrCookieSlime.CSCoreLibPlugin.general.Inventory.ChestMenu
me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset
city.norain.slimefun4.api.menu.UniversalMenuPreset
- 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.BlockMenuPreset
occupiedSlots
Fields inherited from class city.norain.slimefun4.holder.SlimefunInventoryHolder
inventory
-
Constructor Summary
ConstructorsConstructorDescriptionUniversalMenuPreset
(String id, String title) Creates a new ChestMenu with the specified Title -
Method Summary
Modifier and TypeMethodDescriptionprotected void
clone
(UniversalMenu menu, org.bukkit.Location lastPresent) protected void
clone
(DirtyChestMenu menu) static UniversalMenuPreset
void
newInstance
(UniversalMenu menu, org.bukkit.block.Block b) 创建一个新的菜单实例Methods inherited from class me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset
addItem, addMenuClickHandler, canOpen, drawBackground, drawBackground, getID, getInventorySlots, getPresetSlots, getSize, getSlimefunItem, getSlotsAccessedByItemTransport, getSlotsAccessedByItemTransport, getTitle, init, isInventory, newInstance, newInstance, onItemStackChange, replaceExistingItem, setSize
Methods inherited from class me.mrCookieSlime.CSCoreLibPlugin.general.Inventory.ChestMenu
addItem, addMenuCloseHandler, addMenuOpeningHandler, addPlayerInventoryClickHandler, addViewer, build, contains, getContents, getItemInSlot, getMenuClickHandler, getMenuCloseHandler, getMenuOpeningHandler, getPlayerInventoryClickHandler, isEmptySlotsClickable, isPlayerInventoryClickable, isSizeAutomaticallyInferred, lock, locked, open, removeViewer, reset, setEmptySlotsClickable, setPlayerInventoryClickable, 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
-
UniversalMenuPreset
Creates a new ChestMenu with the specified Title- Parameters:
title
- The title of the Menu
-
-
Method Details
-
clone
- Overrides:
clone
in classBlockMenuPreset
-
getPreset