Package de.ellpeck.rockbottom.api.item
Class BasicItemTool
java.lang.Object
de.ellpeck.rockbottom.api.item.Item
de.ellpeck.rockbottom.api.item.BasicItem
de.ellpeck.rockbottom.api.item.BasicItemTool
- Direct Known Subclasses:
ToolItem
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddescribeItem(IAssetManager manager, ItemInstance instance, List<String> desc, boolean isAdvanced, boolean isRealItem) Allows items to add to the tooltipintbooleanMethods inherited from class de.ellpeck.rockbottom.api.item.BasicItem
createRenderer, getRendererMethods inherited from class de.ellpeck.rockbottom.api.item.Item
attacksMultipleEntities, canHoldButtonToAttack, getAttackCooldown, getAttackDamage, getCustomAttackableEntities, getDespawnTime, getInteractionPriority, getLocalizedName, getMaxAmount, getMaxInteractionDistance, getMiningSpeed, getName, getToolProperties, getUnlocalizedName, hasToolProperty, isDataSensitive, onEntityAttack, onInteractWith, onInteractWithDestKey, onTileBroken, register, setMaxAmount, takeDamage, takeDamage, toString
-
Field Details
-
durability
protected final int durability
-
-
Constructor Details
-
BasicItemTool
-
-
Method Details
-
describeItem
public void describeItem(IAssetManager manager, ItemInstance instance, List<String> desc, boolean isAdvanced, boolean isRealItem) Description copied from class:ItemAllows items to add to the tooltip- Overrides:
describeItemin classItem- Parameters:
manager- 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.
-
useMetaAsDurability
public boolean useMetaAsDurability()- Overrides:
useMetaAsDurabilityin classItem
-
getHighestPossibleMeta
public int getHighestPossibleMeta()- Overrides:
getHighestPossibleMetain classItem
-