|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.minecraft.src.Item
net.minecraft.src.ItemTool
public class ItemTool
| Field Summary |
|---|
| Method Summary | |
|---|---|
String |
func_77861_e()
|
int |
getDamageVsEntity(Entity par1Entity)
Returns the damage against a given entity. |
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 |
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 |
| 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 Itempublic int getDamageVsEntity(Entity par1Entity)
getDamageVsEntity in class Itempublic boolean isFull3D()
isFull3D in class Itempublic int getItemEnchantability()
getItemEnchantability in class Itempublic String func_77861_e()
public float getStrVsBlock(ItemStack stack,
Block block,
int meta)
getStrVsBlock in class Itemstack - 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 | |||||||||