Class PassthroughItemMaterial
java.lang.Object
com.sk89q.worldedit.world.registry.PassthroughItemMaterial
- All Implemented Interfaces:
ItemMaterial
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
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.
-
Constructor Details
-
PassthroughItemMaterial
-
-
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 interfaceItemMaterial
- 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 interfaceItemMaterial
- Returns:
- the maximum damage, or 0 if not applicable
-