Class BlockCarrot


public class BlockCarrot extends BlockCrops
  • Constructor Details

    • BlockCarrot

      public BlockCarrot(int par1)
  • Method Details

    • 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 BlockCrops
    • getSeedItem

      protected int getSeedItem()
      Generate a seed ItemStack for this crop.
      Overrides:
      getSeedItem in class BlockCrops
    • getCropItem

      protected int getCropItem()
      Generate a crop produce ItemStack for this crop.
      Overrides:
      getCropItem in class BlockCrops
    • 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 BlockCrops
    • getBaseGrowthChance

      public float getBaseGrowthChance(World world, int i, int j, int k)
      Overrides:
      getBaseGrowthChance in class BlockCrops
    • incrementGrowthLevel

      protected void incrementGrowthLevel(World world, int i, int j, int k)
      Overrides:
      incrementGrowthLevel in class BlockCrops
    • 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