Class LobbyItemDefinition<M>

java.lang.Object
net.blueva.arcade.api.ui.LobbyItemDefinition<M>
Type Parameters:
M - the material/item type (platform-specific)
Record Components:
id - the unique identifier for this lobby item
material - the material/item type to display
slot - the inventory slot (0-8) where this item should be placed
displayName - the colored display name shown to players
lore - the list of lore lines shown in the item tooltip
actions - the list of action commands to execute when clicked
enabled - whether this lobby item is active and should be given to players

public final class LobbyItemDefinition<M> extends Object
Defines a lobby item that can be placed in the player's inventory during waiting phase.

Lobby items are interactive inventory items given to players while they wait for a game to start. They can trigger various actions like opening menus, leaving the game, or selecting teams. Items are configured per-game and can be enabled/disabled.

  • Constructor Details

    • LobbyItemDefinition

      public LobbyItemDefinition(String id, M material, int slot, String displayName, List<String> lore, List<String> actions, boolean enabled)
  • Method Details

    • id

      public String id()
    • material

      public M material()
    • slot

      public int slot()
    • displayName

      public String displayName()
    • lore

      public List<String> lore()
    • actions

      public List<String> actions()
    • enabled

      public boolean enabled()
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object