|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.item.Item
net.minecraft.item.ItemTool
public class ItemTool
Field Summary | |
---|---|
int |
damageVsEntity
Damage versus entities. |
float |
efficiencyOnProperMaterial
|
Method Summary | |
---|---|
int |
getDamageVsEntity(Entity par1Entity)
Returns the damage against a given entity. |
boolean |
getIsRepairable(ItemStack par1ItemStack,
ItemStack par2ItemStack)
Return whether this item is repairable in an anvil. |
int |
getItemEnchantability()
Return the enchantability factor of the item, most of the time is based on material. |
float |
getStrVsBlock(ItemStack par1ItemStack,
Block par2Block)
Returns the strength of the stack against a given block. |
float |
getStrVsBlock(ItemStack stack,
Block block,
int meta)
FORGE: Overridden to allow custom tool effectiveness |
String |
getToolMaterialName()
Return the name for this tool's material. |
boolean |
hitEntity(ItemStack par1ItemStack,
EntityLiving par2EntityLiving,
EntityLiving par3EntityLiving)
Current implementations of this method in child classes do not use the entry argument beside ev. |
boolean |
isFull3D()
|
boolean |
onBlockDestroyed(ItemStack par1ItemStack,
World par2World,
int par3,
int par4,
int par5,
int par6,
EntityLiving par7EntityLiving)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public float efficiencyOnProperMaterial
public int damageVsEntity
Method Detail |
---|
public float getStrVsBlock(ItemStack par1ItemStack, Block par2Block)
getStrVsBlock
in class Item
public boolean hitEntity(ItemStack par1ItemStack, EntityLiving par2EntityLiving, EntityLiving par3EntityLiving)
hitEntity
in class Item
public boolean onBlockDestroyed(ItemStack par1ItemStack, World par2World, int par3, int par4, int par5, int par6, EntityLiving par7EntityLiving)
onBlockDestroyed
in class Item
public int getDamageVsEntity(Entity par1Entity)
getDamageVsEntity
in class Item
public boolean isFull3D()
isFull3D
in class Item
public int getItemEnchantability()
getItemEnchantability
in class Item
public String getToolMaterialName()
public boolean getIsRepairable(ItemStack par1ItemStack, ItemStack par2ItemStack)
getIsRepairable
in class Item
public float getStrVsBlock(ItemStack stack, Block block, int meta)
getStrVsBlock
in class Item
stack
- The Item Stackblock
- The block the item is trying to breakmeta
- The items current metadata
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |