Class StoreItemDefinition<M>

java.lang.Object
net.blueva.arcade.api.store.StoreItemDefinition<M>
Type Parameters:
M - the material/icon type (platform-specific)
Record Components:
id - the unique identifier of this item
displayName - the user-friendly name displayed in the store interface
icon - the icon/material representing this item in menus
description - a list of description lines shown to players
price - the cost of this item in coins (0 for free items)
enabled - whether this item is currently active and available for purchase
defaultUnlocked - whether players have this item unlocked by default without purchasing

public final class StoreItemDefinition<M> extends Object
Defines a purchasable store item.

Store items represent cosmetics, effects, or other purchasable content that players can buy using in-game currency. Items belong to categories and can be unlocked by default or require purchase.

  • Constructor Details

    • StoreItemDefinition

      public StoreItemDefinition(String id, String displayName, M icon, List<String> description, int price, boolean enabled, boolean defaultUnlocked)
  • Method Details

    • id

      public String id()
    • displayName

      public String displayName()
    • icon

      public M icon()
    • description

      public List<String> description()
    • price

      public int price()
    • enabled

      public boolean enabled()
    • defaultUnlocked

      public boolean defaultUnlocked()
    • 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