Class BlockPotato


public class BlockPotato extends BlockCrops
  • Constructor Details

    • BlockPotato

      public BlockPotato(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
    • dropBlockAsItemWithChance

      public void dropBlockAsItemWithChance(World par1World, int par2, int par3, int par4, int par5, float par6, int par7)
      Drops the block items with a specified chance of dropping the specified items
      Overrides:
      dropBlockAsItemWithChance 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