Class ItemConfig

java.lang.Object
net.storm.api.plugins.config.ItemConfig

public class ItemConfig extends Object
Represents an item configuration value for configuration items that select game items.

ItemConfig pairs an item ID with its display name, allowing configuration UI to show human-readable item names while storing the numeric ID.

Example usage in a config interface:


 @ConfigItem(
     keyName = "preferredFood",
     name = "Preferred Food",
     description = "The food item to use"
 )
 default ItemConfig preferredFood() {
     return new ItemConfig(385, "Shark");
 }
 

See Also:
  • Constructor Details

    • ItemConfig

      public ItemConfig()