Class BlockTallGrass


public class BlockTallGrass extends BlockFlower
  • Constructor Details

    • BlockTallGrass

      protected BlockTallGrass(int par1)
  • Method Details

    • quantityDroppedWithBonus

      public int quantityDroppedWithBonus(int par1, Random par2Random)
      Returns the usual quantity dropped by the block plus a bonus of 1 to 'i' (inclusive).
      Overrides:
      quantityDroppedWithBonus in class Block
    • harvestBlock

      public void harvestBlock(World world, EntityPlayer player, int x, int y, int z, int par6)
      Called when the player destroys a block with an item that can harvest it. (i, j, k) are the coordinates of the block and l is the block's subtype/damage.
      Overrides:
      harvestBlock in class Block
    • dropBlockAsItemWithChance

      public void dropBlockAsItemWithChance(World world, int x, int y, int z, int metadata, float chance, int fortuneModifier)
      Drops the block items with a specified chance of dropping the specified items
      Overrides:
      dropBlockAsItemWithChance in class Block
    • idDropped

      public int idDropped(int iMetadata, Random rand, int iFortuneModifier)
      Description copied from class: Block
      Returns the ID of the items to drop on destruction.
      Overrides:
      idDropped in class Block
    • updateTick

      public void updateTick(World world, int i, int j, int k, Random rand)
      Description copied from class: BlockFlower
      Ticks the block if it's been scheduled
      Overrides:
      updateTick in class BlockFlower
    • canSpitWebReplaceBlock

      public boolean canSpitWebReplaceBlock(World world, int i, int j, int k)
      Overrides:
      canSpitWebReplaceBlock in class Block
    • isReplaceableVegetation

      public boolean isReplaceableVegetation(World world, int i, int j, int k)
      Overrides:
      isReplaceableVegetation in class Block
    • getStackRetrievedByBlockDispenser

      public ItemStack getStackRetrievedByBlockDispenser(World world, int i, int j, int k)
      Description copied from class: Block
      If the stack returned is null, the block will not be retrieved
      Overrides:
      getStackRetrievedByBlockDispenser in class Block
    • canBeGrazedOn

      public boolean canBeGrazedOn(IBlockAccess blockAccess, int i, int j, int k, EntityAnimal animal)
      Overrides:
      canBeGrazedOn in class BlockFlower
    • getHerbivoreItemFoodValue

      public int getHerbivoreItemFoodValue(int iItemDamage)
      Overrides:
      getHerbivoreItemFoodValue in class Block
    • getDamageValue

      public int getDamageValue(World par1World, int par2, int par3, int par4)
      Get the block's damage value (for use with pick block).
      Overrides:
      getDamageValue in class Block
    • getSubBlocks

      public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)
      returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)
      Overrides:
      getSubBlocks in class Block
    • registerIcons

      public void registerIcons(IconRegister par1IconRegister)
      When this method is called, your block should register all the icons it needs with the given IconRegister. This is the only chance you get to register icons.
      Overrides:
      registerIcons in class Block
    • getIcon

      public Icon getIcon(int par1, int par2)
      From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
      Overrides:
      getIcon in class Block
    • getBlockColor

      public int getBlockColor()
      Overrides:
      getBlockColor in class Block
    • getRenderColor

      public int getRenderColor(int par1)
      Returns the color this block should be rendered. Used by leaves.
      Overrides:
      getRenderColor in class Block
    • colorMultiplier

      public int colorMultiplier(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
      Returns a integer with hex for 0xrrggbb with this color multiplied against the blocks color. Note only called when first determining what to render.
      Overrides:
      colorMultiplier in class Block
    • getBlockTexture

      public Icon getBlockTexture(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
      Description copied from class: Block
      Retrieves the block texture to use based on the display side. Args: iBlockAccess, x, y, z, side
      Overrides:
      getBlockTexture in class Block
    • renderBlock

      @Environment(CLIENT) public boolean renderBlock(RenderBlocks renderer, int i, int j, int k)
      Overrides:
      renderBlock in class PlantsBlock