Class BlockMelon

java.lang.Object
net.minecraft.src.Block
net.minecraft.src.BlockMelon

public class BlockMelon extends Block
  • Constructor Details

    • BlockMelon

      protected BlockMelon(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 Block
    • idDropped

      public int idDropped(int par1, Random par2Random, int par3)
      Returns the ID of the items to drop on destruction.
      Overrides:
      idDropped in class Block
    • quantityDropped

      public int quantityDropped(Random par1Random)
      Returns the quantity of items to drop on block destruction.
      Overrides:
      quantityDropped in class Block
    • 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
    • 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