Class BlockColored

java.lang.Object
net.minecraft.src.Block
net.minecraft.src.BlockColored
Direct Known Subclasses:
WoolBlock

public class BlockColored extends Block
  • Constructor Details

    • BlockColored

      public BlockColored(int par1, Material par2Material)
  • 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
    • damageDropped

      public int damageDropped(int par1)
      Determines the damage on the item the block drops. Used in cloth and wood.
      Overrides:
      damageDropped in class Block
    • getBlockFromDye

      public static int getBlockFromDye(int par0)
      Takes a dye damage value and returns the block damage value to match
    • getDyeFromBlock

      public static int getDyeFromBlock(int par0)
      Takes a block damage value and returns the dye damage value to match
    • 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