public class ItemSword extends ItemTool
durability| Constructor and Description |
|---|
ItemSword(ResourceName name,
int durability,
int attackDamage,
int cooldown,
double attackDistance,
double knockback) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
attacksMultipleEntities(IWorld world,
double mouseX,
double mouseY,
AbstractEntityPlayer player,
ItemInstance instance) |
boolean |
canHoldButtonToAttack(IWorld world,
double mouseX,
double mouseY,
AbstractEntityPlayer player,
ItemInstance instance) |
int |
getAttackCooldown(IWorld world,
double mouseX,
double mouseY,
AbstractEntityPlayer player,
ItemInstance instance) |
int |
getAttackDamage(IWorld world,
Entity entity,
double mouseX,
double mouseY,
AbstractEntityPlayer player,
ItemInstance instance) |
java.util.List<Entity> |
getCustomAttackableEntities(IWorld world,
double mouseX,
double mouseY,
AbstractEntityPlayer player,
ItemInstance instance) |
boolean |
onEntityAttack(IWorld world,
double mouseX,
double mouseY,
AbstractEntityPlayer player,
Entity entity,
ItemInstance instance) |
addToolProperty, createRenderer, getMiningSpeed, getToolProperties, onTileBrokendescribeItem, getHighestPossibleMeta, useMetaAsDurabilitygetRenderergetDespawnTime, getInteractionPriority, getLocalizedName, getMaxAmount, getMaxInteractionDistance, getName, getUnlocalizedName, isDataSensitive, onInteractWith, onInteractWithDestKey, register, setMaxAmount, takeDamage, takeDamage, toStringpublic ItemSword(ResourceName name, int durability, int attackDamage, int cooldown, double attackDistance, double knockback)
public java.util.List<Entity> getCustomAttackableEntities(IWorld world, double mouseX, double mouseY, AbstractEntityPlayer player, ItemInstance instance)
getCustomAttackableEntities in class Itempublic boolean onEntityAttack(IWorld world, double mouseX, double mouseY, AbstractEntityPlayer player, Entity entity, ItemInstance instance)
onEntityAttack in class Itempublic boolean attacksMultipleEntities(IWorld world, double mouseX, double mouseY, AbstractEntityPlayer player, ItemInstance instance)
attacksMultipleEntities in class Itempublic int getAttackDamage(IWorld world, Entity entity, double mouseX, double mouseY, AbstractEntityPlayer player, ItemInstance instance)
getAttackDamage in class Itempublic int getAttackCooldown(IWorld world, double mouseX, double mouseY, AbstractEntityPlayer player, ItemInstance instance)
getAttackCooldown in class Itempublic boolean canHoldButtonToAttack(IWorld world, double mouseX, double mouseY, AbstractEntityPlayer player, ItemInstance instance)
canHoldButtonToAttack in class Item