| Modifier and Type | Field and Description |
|---|---|
protected int |
durability |
| Constructor and Description |
|---|
BasicItemTool(ResourceName name,
int durability) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeItem(IAssetManager manager,
ItemInstance instance,
java.util.List<java.lang.String> desc,
boolean isAdvanced,
boolean isRealItem)
Allows items to add to the tooltip
|
int |
getHighestPossibleMeta() |
boolean |
useMetaAsDurability() |
createRenderer, getRendererattacksMultipleEntities, canHoldButtonToAttack, getAttackCooldown, getAttackDamage, getCustomAttackableEntities, getDespawnTime, getInteractionPriority, getLocalizedName, getMaxAmount, getMaxInteractionDistance, getMiningSpeed, getName, getToolProperties, getUnlocalizedName, hasToolProperty, isDataSensitive, onEntityAttack, onInteractWith, onInteractWithDestKey, onTileBroken, register, setMaxAmount, takeDamage, takeDamage, toStringpublic BasicItemTool(ResourceName name, int durability)
public void describeItem(IAssetManager manager, ItemInstance instance, java.util.List<java.lang.String> desc, boolean isAdvanced, boolean isRealItem)
ItemdescribeItem in class Itemmanager - The asset managerinstance - The item that is being describeddesc - The item description. You can add to this list or replace it.isAdvanced - If the player is holding SHIFT to view advanced infoisRealItem - Does the player actually own this item or is it a preview in a GUI?
Used by tools to display durability descriptors only on real items.public boolean useMetaAsDurability()
useMetaAsDurability in class Itempublic int getHighestPossibleMeta()
getHighestPossibleMeta in class Item