Interface ItemMaterial
- All Known Implementing Classes:
PassthroughItemMaterial
,SimpleItemMaterial
public interface ItemMaterial
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
Deprecated, for removal: This API element is subject to removal in a future version.default int
Deprecated, for removal: This API element is subject to removal in a future version.UsemaxStackSize()
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, for removal: This API element is subject to removal in a future version.UsemaxStackSize()
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, for removal: This API element is subject to removal in a future version.UsemaxDamage()
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
-
maxDamage()
instead.