Interface ItemMaterial

All Known Implementing Classes:
PassthroughItemMaterial, SimpleItemMaterial

public interface ItemMaterial
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use maxDamage() instead.
    default int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use maxStackSize() instead.
    default int
    Gets the the maximum damage this item can take before being broken.
    default int
    Gets the the maximum quantity of this item that can be in a single stack.
  • Method Details

    • getMaxStackSize

      @Deprecated(forRemoval=true) default int getMaxStackSize()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use maxStackSize() instead.
      Gets the the maximum quantity of this item that can be in a single stack.
      Returns:
      the maximum quantity
    • maxStackSize

      @NonAbstractForCompatibility(delegateName="getMaxStackSize", delegateParams={}) default int maxStackSize()
      Gets the the maximum quantity of this item that can be in a single stack.
      Returns:
      the maximum quantity
    • getMaxDamage

      @Deprecated(forRemoval=true) default int getMaxDamage()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use maxDamage() instead.
      Gets the the maximum damage this item can take before being broken.
      Returns:
      the maximum damage, or 0 if not applicable
    • maxDamage

      @NonAbstractForCompatibility(delegateName="getMaxDamage", delegateParams={}) default int maxDamage()
      Gets the the maximum damage this item can take before being broken.
      Returns:
      the maximum damage, or 0 if not applicable