Interface ItemDefaults.Source

Enclosing class:
ItemDefaults

public static interface ItemDefaults.Source
Supplies the defaults of items the server knows about. Implemented over the generated table.
Since:
0.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    maxDamage(Key item)
     
    int
     
  • Method Details

    • maxStackSize

      int maxStackSize(Key item)
      Parameters:
      item - namespaced item identifier
      Returns:
      how many of this item fit in one slot
    • maxDamage

      int maxDamage(Key item)
      Parameters:
      item - namespaced item identifier
      Returns:
      total durability, or 0 when the item cannot break