Class TargetSelectionMenu
java.lang.Object
ua.mcchickenstudio.opencreative.menus.AbstractMenu
ua.mcchickenstudio.opencreative.coding.menus.TargetSelectionMenu
- All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder, InventoryMenu
-
Field Summary
Fields inherited from class AbstractMenu
AIR_ITEM, creationTime, DECORATION_ITEM, DECORATION_PANE_ITEM, DISABLED_ITEM, inventory, NO_PERMS_ITEMModifier and TypeFieldDescriptionprotected final org.bukkit.inventory.ItemStackprotected final longprotected final org.bukkit.inventory.ItemStackprotected final org.bukkit.inventory.ItemStackprotected final org.bukkit.inventory.ItemStackprotected org.bukkit.inventory.Inventoryprotected final org.bukkit.inventory.ItemStack -
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 AbstractMenu
getCreationTime, getInventory, getItem, getRows, getSize, getTitle, isClickedInMenuSlots, isNotEmpty, isPlayerClicked, open, reverse, setItem, setItem, setRows, setTitleModifier and TypeMethodDescriptionlongReturns the creation time of menu in milliseconds of Unix format.@NotNull org.bukkit.inventory.Inventory@NotNull org.bukkit.inventory.ItemStackgetItem(int slot) intgetRows()intgetSize()getTitle()protected final booleanisClickedInMenuSlots(org.bukkit.event.inventory.InventoryClickEvent event) protected booleanisNotEmpty(org.bukkit.inventory.ItemStack item) protected final booleanisPlayerClicked(org.bukkit.event.inventory.InventoryClickEvent event) voidopen(@NotNull org.bukkit.entity.Player player) Opens the inventory for player.protected intreverse(int slot) voidsetItem(int slot, org.bukkit.inventory.ItemStack item) voidsetItem(org.bukkit.inventory.ItemStack item, int... slots) protected voidsetRows(int rows) voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface InventoryMenu
destroy, onClose
-
Constructor Details
-
TargetSelectionMenu
public TargetSelectionMenu(org.bukkit.Location location)
-
-
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.
-