|
||||||||||
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.ItemSword
public class ItemSword
Field Summary |
---|
Constructor Summary | |
---|---|
ItemSword(int par1,
EnumToolMaterial par2EnumToolMaterial)
|
Method Summary | |
---|---|
boolean |
canHarvestBlock(Block par1Block)
Returns if the item (tool) can harvest results from the block type. |
String |
func_77825_f()
|
int |
func_82803_g()
|
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. |
EnumAction |
getItemUseAction(ItemStack par1ItemStack)
returns the action that specifies what animation to play when the items is being used |
int |
getMaxItemUseDuration(ItemStack par1ItemStack)
How long it takes to use or consume an item |
float |
getStrVsBlock(ItemStack par1ItemStack,
Block par2Block)
Returns the strength of the stack against a given block. |
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)
|
ItemStack |
onItemRightClick(ItemStack par1ItemStack,
World par2World,
EntityPlayer par3EntityPlayer)
Called whenever this item is equipped and the right mouse button is pressed. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ItemSword(int par1, EnumToolMaterial par2EnumToolMaterial)
Method Detail |
---|
public int func_82803_g()
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 EnumAction getItemUseAction(ItemStack par1ItemStack)
getItemUseAction
in class Item
public int getMaxItemUseDuration(ItemStack par1ItemStack)
getMaxItemUseDuration
in class Item
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
onItemRightClick
in class Item
public boolean canHarvestBlock(Block par1Block)
canHarvestBlock
in class Item
public int getItemEnchantability()
getItemEnchantability
in class Item
public String func_77825_f()
public boolean getIsRepairable(ItemStack par1ItemStack, ItemStack par2ItemStack)
getIsRepairable
in class Item
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |