Class JavaMenuItem<M>

java.lang.Object
net.blueva.arcade.api.ui.menu.JavaMenuItem<M>
Type Parameters:
M - the material type (platform-specific)
Record Components:
slot - the inventory slot (0-53)
item - the item definition to display at this slot

@Deprecated public final class JavaMenuItem<M> extends Object
Deprecated.
Since 3.2. Use MCJavaMenuItem instead. This class is kept for backward compatibility with API 3.1 modules.
Menu item bound to a specific inventory slot for Java edition.

Represents an item placed at a specific slot in a Java inventory menu.

  • Constructor Details

  • Method Details

    • slot

      public int slot()
      Deprecated.
    • item

      public JavaItemDefinition<M> item()
      Deprecated.
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • of

      public static <M> JavaMenuItem<M> of(int slot, JavaItemDefinition<M> item)
      Deprecated.
      Creates a new menu item at the specified slot.
      Type Parameters:
      M - the material type
      Parameters:
      slot - the inventory slot
      item - the item definition
      Returns:
      a new JavaMenuItem instance