Interface ItemMaterial

All Known Implementing Classes:
PassthroughItemMaterial, SimpleItemMaterial

public interface ItemMaterial
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the the maximum damage this item can take before being broken.
    int
    Gets the the maximum quantity of this item that can be in a single stack.
  • Method Details

    • getMaxStackSize

      int getMaxStackSize()
      Gets the the maximum quantity of this item that can be in a single stack.
      Returns:
      the maximum quantity
    • getMaxDamage

      int getMaxDamage()
      Gets the the maximum damage this item can take before being broken.
      Returns:
      the maximum damage, or 0 if not applicable