Annotation Type Menu


@Retention(RUNTIME) @Target(TYPE) public @interface Menu
Defines a GUI inventory menu. Can be linked to a InventoryMenuPattern or simply at the class level.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int[]
    The dimensions of the menu, if supported.
    The click types to allow by default.
    The menu title.
    The inventory type.
  • Element Details

    • dimensions

      int[] dimensions
      The dimensions of the menu, if supported.
      Default:
      {3, 3}
    • filter

      ClickType[] filter
      The click types to allow by default. Empty = all allowed
      Default:
      {}
    • title

      String title
      The menu title.
      Default:
      ""
    • type

      The inventory type.
      Default:
      CHEST