Class BlockBreakable

java.lang.Object
net.minecraft.src.Block
net.minecraft.src.BlockBreakable
Direct Known Subclasses:
BlockGlass, BlockIce, BlockPortal

public class BlockBreakable extends Block
  • Constructor Details

    • BlockBreakable

      protected BlockBreakable(int par1, String par2Str, Material par3Material, boolean par4)
  • Method Details

    • isOpaqueCube

      public boolean isOpaqueCube()
      Is this block (a) opaque and (b) a full 1m cube? This determines whether or not to render the shared face of two adjacent blocks and also whether the player can attach torches, redstone wire, etc to this block.
      Overrides:
      isOpaqueCube in class Block
    • shouldSideBeRendered

      public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
      Returns true if the given side of this block type should be rendered, if the adjacent block is at the given coordinates. Args: blockAccess, x, y, z, side
      Overrides:
      shouldSideBeRendered 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