Class BlocksCategorySelectionMenu
java.lang.Object
ua.mcchickenstudio.opencreative.menus.AbstractMenu
ua.mcchickenstudio.opencreative.coding.menus.blocks.MenusCategorySelectionMenu
ua.mcchickenstudio.opencreative.coding.menus.blocks.BlocksCategorySelectionMenu
- All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder, BlockMenu, InventoryMenu
public final class BlocksCategorySelectionMenu
extends MenusCategorySelectionMenu
implements BlockMenu
BlocksCategorySelectionMenu
This class represents a menu for selecting menus category and opening a coding block type selection menu.-
Field Summary
Fields inherited from class MenusCategorySelectionMenu
additionalPane, contentMenu, frequency, legacy, mainCategory, mainItem, menusCategories, playerModifier and TypeFieldDescriptionprotected final org.bukkit.Materialprotected ContentWithMenusCategoryMenu<?> protected final Objectprotected final booleanprotected final Stringprotected final org.bukkit.inventory.ItemStackprotected final List<MenusCategory> protected final org.bukkit.entity.PlayerFields 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
ConstructorsConstructorDescriptionBlocksCategorySelectionMenu(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.Location location, @NotNull ActionCategory category) BlocksCategorySelectionMenu(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.Location location, @NotNull ActionCategory category, @NotNull String firstLine) BlocksCategorySelectionMenu(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.Location location, @NotNull ExecutorCategory category) -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.block.BlockState@NotNull ContentWithMenusCategoryMenu<?> getContentBrowserMenu(Object frequency) @Nullable org.bukkit.LocationMethods inherited from class MenusCategorySelectionMenu
fillItems, onClick, onOpenModifier 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
-
BlocksCategorySelectionMenu
public BlocksCategorySelectionMenu(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull ExecutorCategory category) -
BlocksCategorySelectionMenu
public BlocksCategorySelectionMenu(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull ActionCategory category) -
BlocksCategorySelectionMenu
public BlocksCategorySelectionMenu(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull ActionCategory category, @NotNull @NotNull String firstLine)
-
-
Method Details
-
getContentBrowserMenu
- Specified by:
getContentBrowserMenuin classMenusCategorySelectionMenu
-
getBlockState
@NotNull public @NotNull org.bukkit.block.BlockState getBlockState()- Specified by:
getBlockStatein interfaceBlockMenu
-
getLocation
@Nullable public @Nullable org.bukkit.Location getLocation()- Specified by:
getLocationin interfaceBlockMenu
-