Enum Class MenuTrigger

java.lang.Object
java.lang.Enum<MenuTrigger>
xericker.arenalegends.menu.contract.MenuTrigger
All Implemented Interfaces:
Serializable, Comparable<MenuTrigger>, Constable

public enum MenuTrigger extends Enum<MenuTrigger>
  • Enum Constant Details

    • PREVIOUS_PAGE

      public static final MenuTrigger PREVIOUS_PAGE
    • NEXT_PAGE

      public static final MenuTrigger NEXT_PAGE
    • IGNORE_BUILD

      public static final MenuTrigger IGNORE_BUILD
    • IGNORE_EVENT

      public static final MenuTrigger IGNORE_EVENT
    • CLOSE_MENU

      public static final MenuTrigger CLOSE_MENU
    • GO_BACK

      public static final MenuTrigger GO_BACK
    • FILTER_ALL

      public static final MenuTrigger FILTER_ALL
    • FILTER_OWNED

      public static final MenuTrigger FILTER_OWNED
    • FILTER_UNOWNED

      public static final MenuTrigger FILTER_UNOWNED
  • Method Details

    • values

      public static MenuTrigger[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MenuTrigger valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getAllowed

      public static MenuTrigger[] getAllowed()
    • add

      public static void add(org.bukkit.inventory.ItemStack itemStack, Enum<?>... enumKeys)
    • add

      public static void add(org.bukkit.inventory.ItemStack itemStack, String... triggers)
    • toStack

      public org.bukkit.inventory.ItemStack toStack(org.bukkit.Material material)
    • getFromItem

      public static List<String> getFromItem(org.bukkit.inventory.ItemStack itemStack)
    • getBuilder

      public static xericker.xerlib.item.builder.ItemBuilder getBuilder(List<xericker.xerlib.item.builder.ItemBuilder> itemBuilders, Object trigger)
    • getMenu

      @Nullable public static @Nullable Menu getMenu(List<String> itemTriggers)
    • getMenu

      @Nullable public static @Nullable Menu getMenu(String... itemTriggers)
    • getFilter

      @Nullable public static @Nullable xericker.xerlib.contract.FilterType getFilter(String trigger)