Class PassthroughItemMaterial

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

public class PassthroughItemMaterial extends Object implements ItemMaterial
  • Constructor Details

    • PassthroughItemMaterial

      public PassthroughItemMaterial(@Nullable ItemMaterial material)
  • Method Details

    • maxStackSize

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

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