public class ItemSword extends ItemTool
| Constructor | Description |
|---|---|
ItemSword(ResourceName name,
int durability,
int attackDamage,
int cooldown,
double attackDistance,
double knockback) |
| Modifier and Type | Method | 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) |
getDespawnTime, getInteractionPriority, getLocalizedName, getMaxAmount, getMaxInteractionDistance, getName, getUnlocalizedName, isDataSensitive, onInteractWith, onInteractWithDestKey, register, setMaxAmount, takeDamage, takeDamage, toStringgetRendereraddToolProperty, createRenderer, describeItem, getHighestPossibleMeta, getMiningSpeed, getToolProperties, onTileBroken, useMetaAsDurabilitypublic 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