Annotation Type MenuSlot


Defines a slot with a certain item. Can be linked to a InventoryMenuSlot or simply at the class level.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The amount of the itemstack to display.
    For compatibility with old Minecraft versions - a two String array {intended material name, fallback material name} e.g.
    The lore of the inventory item, newline-delimited.
    The material to display (defaults to AIR).
    char
    For use with patterns.
    int[]
    The position of the slot within the inventory.
    The display name of the inventory item.
  • Element Details

    • amount

      int amount
      The amount of the itemstack to display.
      Default:
      1
    • compatMaterial

      String[] compatMaterial
      For compatibility with old Minecraft versions - a two String array {intended material name, fallback material name} e.g. {"SHIELD", "AIR"}
      Default:
      {}
    • lore

      String lore
      The lore of the inventory item, newline-delimited.
      Default:
      "EMPTY"
    • material

      Material material
      The material to display (defaults to AIR). For extra customisation see InventoryMenuSlot.
      Default:
      AIR
    • pat

      char pat
      For use with patterns.
      Default:
      '0'
    • slot

      int[] slot
      The position of the slot within the inventory.
      Default:
      {0, 0}
    • title

      String title
      The display name of the inventory item.
      Default:
      "EMPTY"