|
||||||||||
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 | |
---|---|
boolean |
func_77660_a(ItemStack par1ItemStack,
World par2World,
int par3,
int par4,
int par5,
int par6,
EntityLiving par7EntityLiving)
|
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()
|
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 func_77660_a(ItemStack par1ItemStack, World par2World, int par3, int par4, int par5, int par6, EntityLiving par7EntityLiving)
func_77660_a
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 func_77861_e()
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 |