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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sk89q.worldedit.world.registry.ItemMaterial
getMaxDamage, getMaxStackSize
-
Constructor Details
-
PassthroughItemMaterial
-
-
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 interfaceItemMaterial
- 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 interfaceItemMaterial
- Returns:
- the maximum damage, or 0 if not applicable
-