YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.item.ItemSpade Class Reference
Inheritance diagram for net.minecraft.item.ItemSpade:
net.minecraft.item.ItemTool net.minecraft.item.Item

Public Member Functions

 ItemSpade (int par1, EnumToolMaterial par2EnumToolMaterial)
 
boolean canHarvestBlock (Block par1Block)
 
- Public Member Functions inherited from net.minecraft.item.ItemTool
float getStrVsBlock (ItemStack par1ItemStack, Block par2Block)
 
boolean hitEntity (ItemStack par1ItemStack, EntityLiving par2EntityLiving, EntityLiving par3EntityLiving)
 
boolean onBlockDestroyed (ItemStack par1ItemStack, World par2World, int par3, int par4, int par5, int par6, EntityLiving par7EntityLiving)
 
int getDamageVsEntity (Entity par1Entity)
 
boolean isFull3D ()
 
int getItemEnchantability ()
 
String getToolMaterialName ()
 
boolean getIsRepairable (ItemStack par1ItemStack, ItemStack par2ItemStack)
 
float getStrVsBlock (ItemStack stack, Block block, int meta)
 
- Public Member Functions inherited from net.minecraft.item.Item
 Item (int par1)
 
Item setMaxStackSize (int par1)
 
int getSpriteNumber ()
 
Icon getIconFromDamage (int par1)
 
final Icon getIconIndex (ItemStack par1ItemStack)
 
boolean onItemUse (ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
 
float getStrVsBlock (ItemStack par1ItemStack, Block par2Block)
 
ItemStack onItemRightClick (ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
 
ItemStack onEaten (ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
 
int getItemStackLimit ()
 
int getMetadata (int par1)
 
boolean getHasSubtypes ()
 
int getMaxDamage ()
 
Item setMaxDamage (int par1)
 
boolean isDamageable ()
 
boolean hitEntity (ItemStack par1ItemStack, EntityLiving par2EntityLiving, EntityLiving par3EntityLiving)
 
boolean onBlockDestroyed (ItemStack par1ItemStack, World par2World, int par3, int par4, int par5, int par6, EntityLiving par7EntityLiving)
 
int getDamageVsEntity (Entity par1Entity)
 
boolean canHarvestBlock (Block par1Block)
 
boolean itemInteractionForEntity (ItemStack par1ItemStack, EntityLiving par2EntityLiving)
 
Item setFull3D ()
 
boolean isFull3D ()
 
boolean shouldRotateAroundWhenRendering ()
 
Item setUnlocalizedName (String par1Str)
 
String getLocalizedName (ItemStack par1ItemStack)
 
String getUnlocalizedName ()
 
String getUnlocalizedName (ItemStack par1ItemStack)
 
Item setContainerItem (Item par1Item)
 
boolean doesContainerItemLeaveCraftingGrid (ItemStack par1ItemStack)
 
boolean getShareTag ()
 
Item getContainerItem ()
 
boolean hasContainerItem ()
 
String getStatName ()
 
String func_77653_i (ItemStack par1ItemStack)
 
int getColorFromItemStack (ItemStack par1ItemStack, int par2)
 
void onUpdate (ItemStack par1ItemStack, World par2World, Entity par3Entity, int par4, boolean par5)
 
void onCreated (ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
 
boolean isMap ()
 
EnumAction getItemUseAction (ItemStack par1ItemStack)
 
int getMaxItemUseDuration (ItemStack par1ItemStack)
 
void onPlayerStoppedUsing (ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer, int par4)
 
Item setPotionEffect (String par1Str)
 
String getPotionEffect ()
 
boolean isPotionIngredient ()
 
void addInformation (ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
 
String getItemDisplayName (ItemStack par1ItemStack)
 
boolean hasEffect (ItemStack par1ItemStack)
 
EnumRarity getRarity (ItemStack par1ItemStack)
 
boolean isItemTool (ItemStack par1ItemStack)
 
int getItemEnchantability ()
 
boolean requiresMultipleRenderPasses ()
 
Icon getIconFromDamageForRenderPass (int par1, int par2)
 
void getSubItems (int par1, CreativeTabs par2CreativeTabs, List par3List)
 
Item setCreativeTab (CreativeTabs par1CreativeTabs)
 
CreativeTabs getCreativeTab ()
 
boolean func_82788_x ()
 
boolean getIsRepairable (ItemStack par1ItemStack, ItemStack par2ItemStack)
 
void registerIcons (IconRegister par1IconRegister)
 
boolean onDroppedByPlayer (ItemStack item, EntityPlayer player)
 
boolean onItemUseFirst (ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
 
float getStrVsBlock (ItemStack itemstack, Block block, int metadata)
 
boolean isRepairable ()
 
Item setNoRepair ()
 
boolean onBlockStartBreak (ItemStack itemstack, int X, int Y, int Z, EntityPlayer player)
 
void onUsingItemTick (ItemStack stack, EntityPlayer player, int count)
 
boolean onLeftClickEntity (ItemStack stack, EntityPlayer player, Entity entity)
 
Icon getIcon (ItemStack stack, int renderPass, EntityPlayer player, ItemStack usingItem, int useRemaining)
 
int getRenderPasses (int metadata)
 
ItemStack getContainerItemStack (ItemStack itemStack)
 
int getEntityLifespan (ItemStack itemStack, World world)
 
boolean hasCustomEntity (ItemStack stack)
 
Entity createEntity (World world, Entity location, ItemStack itemstack)
 
boolean onEntityItemUpdate (EntityItem entityItem)
 
CreativeTabs[] getCreativeTabs ()
 
float getSmeltingExperience (ItemStack item)
 
Icon getIcon (ItemStack stack, int pass)
 
WeightedRandomChestContent getChestGenBase (ChestGenHooks chest, Random rnd, WeightedRandomChestContent original)
 
boolean shouldPassSneakingClickToBlock (World par2World, int par4, int par5, int par6)
 
void onArmorTickUpdate (World world, EntityPlayer player, ItemStack itemStack)
 
boolean isValidArmor (ItemStack stack, int armorType, Entity entity)
 
boolean isValidArmor (ItemStack stack, int armorType)
 
boolean isPotionIngredient (ItemStack stack)
 
String getPotionEffect (ItemStack stack)
 
boolean isBookEnchantable (ItemStack itemstack1, ItemStack itemstack2)
 
int getDamageVsEntity (Entity par1Entity, ItemStack itemStack)
 
String getArmorTexture (ItemStack stack, Entity entity, int slot, int layer)
 
FontRenderer getFontRenderer (ItemStack stack)
 
ModelBiped getArmorModel (EntityLiving entityLiving, ItemStack itemStack, int armorSlot)
 
boolean onEntitySwing (EntityLiving entityLiving, ItemStack stack)
 
void renderHelmetOverlay (ItemStack stack, EntityPlayer player, ScaledResolution resolution, float partialTicks, boolean hasScreen, int mouseX, int mouseY)
 
int getDamage (ItemStack stack)
 
int getItemDamageFromStack (ItemStack stack)
 
int getDisplayDamage (ItemStack stack)
 
int getItemDamageFromStackForDisplay (ItemStack stack)
 
int getMaxDamage (ItemStack stack)
 
int getItemMaxDamageFromStack (ItemStack stack)
 
boolean isDamaged (ItemStack stack)
 
boolean isItemStackDamaged (ItemStack stack)
 
void setDamage (ItemStack stack, int damage)
 
void setItemDamageForStack (ItemStack stack, int damage)
 
boolean canHarvestBlock (Block par1Block, ItemStack itemStack)
 

Static Public Attributes

static final Block[] blocksEffectiveAgainst = new Block[] {Block.grass, Block.dirt, Block.sand, Block.gravel, Block.snow, Block.blockSnow, Block.blockClay, Block.tilledField, Block.slowSand, Block.mycelium}
 

Additional Inherited Members

- Public Attributes inherited from net.minecraft.item.ItemTool
float efficiencyOnProperMaterial = 4.0F
 
int damageVsEntity
 
- Protected Member Functions inherited from net.minecraft.item.ItemTool
 ItemTool (int par1, int par2, EnumToolMaterial par3EnumToolMaterial, Block[] par4ArrayOfBlock)
 
- Protected Attributes inherited from net.minecraft.item.ItemTool
EnumToolMaterial toolMaterial
 
- Static Protected Attributes inherited from net.minecraft.item.Item
static Random itemRand = new Random()
 

Constructor & Destructor Documentation

net.minecraft.item.ItemSpade.ItemSpade ( int  par1,
EnumToolMaterial  par2EnumToolMaterial 
)

Member Function Documentation

boolean net.minecraft.item.ItemSpade.canHarvestBlock ( Block  par1Block)

Returns if the item (tool) can harvest results from the block type.

Member Data Documentation

final Block [] net.minecraft.item.ItemSpade.blocksEffectiveAgainst = new Block[] {Block.grass, Block.dirt, Block.sand, Block.gravel, Block.snow, Block.blockSnow, Block.blockClay, Block.tilledField, Block.slowSand, Block.mycelium}
static

an array of the blocks this spade is effective against


The documentation for this class was generated from the following file: