public class ItemTool extends Item
| Modifier and Type | Field and Description |
|---|---|
protected EnumToolMaterial |
toolMaterial |
appleGold, appleRed, arrow, axeDiamond, axeGold, axeSteel, axeStone, axeWood, bed, bFull3D, boat, bone, book, bootsChain, bootsDiamond, bootsGold, bootsLeather, bootsSteel, bow, bowlEmpty, bowlSoup, bread, brick, bucketEmpty, bucketLava, bucketMilk, bucketWater, cake, clay, coal, compass, cookie, diamond, doorSteel, doorWood, dyePowder, egg, feather, fishCooked, fishingRod, fishRaw, flint, flintAndSteel, gunpowder, hasSubtypes, helmetChain, helmetDiamond, helmetGold, helmetLeather, helmetSteel, hoeDiamond, hoeGold, hoeSteel, hoeStone, hoeWood, iconIndex, ingotGold, ingotIron, itemRand, itemsList, leather, legsChain, legsDiamond, legsGold, legsLeather, legsSteel, lightStoneDust, mapItem, maxStackSize, minecartCrate, minecartEmpty, minecartPowered, painting, paper, pickaxeDiamond, pickaxeGold, pickaxeSteel, pickaxeStone, pickaxeWood, plateChain, plateDiamond, plateGold, plateLeather, plateSteel, pocketSundial, porkCooked, porkRaw, record13, recordCat, redstone, redstoneRepeater, reed, saddle, seeds, shears, shiftedIndex, shovelDiamond, shovelGold, shovelSteel, shovelStone, shovelWood, sign, silk, slimeBall, snowball, stick, sugar, swordDiamond, swordGold, swordSteel, swordStone, swordWood, wheat| Modifier | Constructor and Description |
|---|---|
protected |
ItemTool(int i,
int j,
EnumToolMaterial enumtoolmaterial,
Block[] ablock) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDamageVsEntity(Entity entity) |
float |
getStrVsBlock(ItemStack itemstack,
Block block) |
boolean |
hitEntity(ItemStack itemstack,
EntityLiving entityliving,
EntityLiving entityliving1) |
boolean |
isFull3D() |
boolean |
onBlockDestroyed(ItemStack itemstack,
int i,
int j,
int k,
int l,
EntityLiving entityliving) |
canHarvestBlock, getColorFromDamage, getContainerItem, getHasSubtypes, getIconFromDamage, getIconIndex, getItemName, getItemNameIS, getItemStackLimit, getMaxDamage, getPlacedBlockMetadata, getStatName, hasContainerItem, isDamagable, onCreated, onItemRightClick, onItemUse, onUpdate, saddleEntity, setContainerItem, setFull3D, setHasSubtypes, setIconCoord, setIconIndex, setItemName, setMaxDamage, setMaxStackSize, shouldRotateAroundWhenRenderingprotected EnumToolMaterial toolMaterial
protected ItemTool(int i,
int j,
EnumToolMaterial enumtoolmaterial,
Block[] ablock)
public float getStrVsBlock(ItemStack itemstack, Block block)
getStrVsBlock in class Itempublic boolean hitEntity(ItemStack itemstack, EntityLiving entityliving, EntityLiving entityliving1)
public boolean onBlockDestroyed(ItemStack itemstack, int i, int j, int k, int l, EntityLiving entityliving)
onBlockDestroyed in class Itempublic int getDamageVsEntity(Entity entity)
getDamageVsEntity in class Item