Class CreativeMenu
java.lang.Object
ua.mcchickenstudio.opencreative.menus.AbstractMenu
ua.mcchickenstudio.opencreative.menus.CreativeMenu
- All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder,InventoryMenu
-
Field Summary
Fields inherited from class ua.mcchickenstudio.opencreative.menus.AbstractMenu
AIR_ITEM, creationTime, DECORATION_ITEM, DECORATION_PANE_ITEM, DISABLED_ITEM, inventory, NO_PERMS_ITEM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfillItems(org.bukkit.entity.Player player) voidonClick(@NotNull org.bukkit.event.inventory.InventoryClickEvent event) Executes when player clicks in inventory.voidonOpen(@NotNull org.bukkit.event.inventory.InventoryOpenEvent event) Executes when player opens inventory and sees it first time.Methods inherited from class ua.mcchickenstudio.opencreative.menus.AbstractMenu
getCreationTime, getInventory, getItem, getRows, getSize, getTitle, isClickedInMenuSlots, isNotEmpty, isPlayerClicked, open, reverse, setItem, setItem, setRows, setTitleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ua.mcchickenstudio.opencreative.menus.InventoryMenu
destroy, onClose
-
Constructor Details
-
CreativeMenu
public CreativeMenu()
-
-
Method Details
-
fillItems
public void fillItems(org.bukkit.entity.Player player) - Specified by:
fillItemsin classAbstractMenu
-
onClick
public void onClick(@NotNull @NotNull org.bukkit.event.inventory.InventoryClickEvent event) Description copied from interface:InventoryMenuExecutes when player clicks in inventory.- Specified by:
onClickin interfaceInventoryMenu- Specified by:
onClickin classAbstractMenu- Parameters:
event- event of click in inventory.
-
onOpen
public void onOpen(@NotNull @NotNull org.bukkit.event.inventory.InventoryOpenEvent event) Description copied from interface:InventoryMenuExecutes when player opens inventory and sees it first time. Useful for playing sounds or setting items.- Specified by:
onOpenin interfaceInventoryMenu- Specified by:
onOpenin classAbstractMenu- Parameters:
event- event of inventory open.
-