Class SimpleItemMaterial

java.lang.Object
com.sk89q.worldedit.world.registry.SimpleItemMaterial
All Implemented Interfaces:
ItemMaterial

public class SimpleItemMaterial extends Object implements ItemMaterial
  • Constructor Details

    • SimpleItemMaterial

      public SimpleItemMaterial(int maxStackSize, int maxDamage)
  • Method Details

    • getMaxStackSize

      public int getMaxStackSize()
      Description copied from interface: ItemMaterial
      Gets the the maximum quantity of this item that can be in a single stack.
      Specified by:
      getMaxStackSize in interface ItemMaterial
      Returns:
      the maximum quantity
    • getMaxDamage

      public int getMaxDamage()
      Description copied from interface: ItemMaterial
      Gets the the maximum damage this item can take before being broken.
      Specified by:
      getMaxDamage in interface ItemMaterial
      Returns:
      the maximum damage, or 0 if not applicable