Class ExecutorArgumentsMenu

java.lang.Object
ua.mcchickenstudio.opencreative.menus.AbstractMenu
ua.mcchickenstudio.opencreative.indev.ExecutorArgumentsMenu
All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder, BlockMenu, InventoryMenu

public class ExecutorArgumentsMenu extends AbstractMenu implements BlockMenu
  • Constructor Details

    • ExecutorArgumentsMenu

      public ExecutorArgumentsMenu(@NotNull @NotNull String type, @NotNull @NotNull org.bukkit.block.Block containerBlock)
  • Method Details

    • fillItems

      public void fillItems(org.bukkit.entity.Player player)
      Specified by:
      fillItems in class AbstractMenu
    • onClick

      public void onClick(@NotNull @NotNull org.bukkit.event.inventory.InventoryClickEvent event)
      Description copied from interface: InventoryMenu
      Executes when player clicks in inventory.
      Specified by:
      onClick in interface InventoryMenu
      Specified by:
      onClick in class AbstractMenu
      Parameters:
      event - event of click in inventory.
    • onOpen

      public void onOpen(@NotNull @NotNull org.bukkit.event.inventory.InventoryOpenEvent event)
      Description copied from interface: InventoryMenu
      Executes when player opens inventory and sees it first time. Useful for playing sounds or setting items.
      Specified by:
      onOpen in interface InventoryMenu
      Specified by:
      onOpen in class AbstractMenu
      Parameters:
      event - event of inventory open.
    • getBlockState

      @Nullable public @Nullable org.bukkit.block.BlockState getBlockState()
      Specified by:
      getBlockState in interface BlockMenu
    • getLocation

      @Nullable public @Nullable org.bukkit.Location getLocation()
      Specified by:
      getLocation in interface BlockMenu