public class ToolItem extends BasicItemTool
durability| Constructor and Description |
|---|
ToolItem(ResourceName name,
float miningSpeed,
int durability,
ToolProperty property,
int level) |
| Modifier and Type | Method and Description |
|---|---|
ToolItem |
addToolProperty(ToolProperty property,
int level) |
protected IItemRenderer |
createRenderer(ResourceName name) |
float |
getMiningSpeed(IWorld world,
int x,
int y,
TileLayer layer,
Tile tile,
boolean isRightTool,
ItemInstance instance) |
java.util.Map<ToolProperty,java.lang.Integer> |
getToolProperties(ItemInstance instance) |
void |
onTileBroken(IWorld world,
int x,
int y,
TileLayer layer,
AbstractPlayerEntity player,
Tile tile,
ItemInstance instance) |
describeItem, getHighestPossibleMeta, useMetaAsDurabilitygetRendererattacksMultipleEntities, canHoldButtonToAttack, getAttackCooldown, getAttackDamage, getCustomAttackableEntities, getDespawnTime, getInteractionPriority, getLocalizedName, getMaxAmount, getMaxInteractionDistance, getName, getUnlocalizedName, hasToolProperty, isDataSensitive, onEntityAttack, onInteractWith, onInteractWithDestKey, register, setMaxAmount, takeDamage, takeDamage, toStringpublic ToolItem(ResourceName name, float miningSpeed, int durability, ToolProperty property, int level)
protected IItemRenderer createRenderer(ResourceName name)
createRenderer in class BasicItempublic ToolItem addToolProperty(ToolProperty property, int level)
public java.util.Map<ToolProperty,java.lang.Integer> getToolProperties(ItemInstance instance)
getToolProperties in class Itempublic float getMiningSpeed(IWorld world, int x, int y, TileLayer layer, Tile tile, boolean isRightTool, ItemInstance instance)
getMiningSpeed in class Itempublic void onTileBroken(IWorld world, int x, int y, TileLayer layer, AbstractPlayerEntity player, Tile tile, ItemInstance instance)
onTileBroken in class Item