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 Details

    • maxStackSize

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

      int maxDamage(TypedKey<Item> item)
      Parameters:
      item - namespaced item identifier
      Returns:
      total durability, or 0 when the item cannot break
    • equipmentSlot

      default @Nullable EquipmentSlot equipmentSlot(TypedKey<Item> item)
      Parameters:
      item - namespaced item identifier
      Returns:
      where the item is worn, null when it cannot be
      Since:
      0.1.0