Class PillarBlock

java.lang.Object
net.minecraft.src.Block
btw.block.blocks.PillarBlock

public class PillarBlock extends Block
Extend this class to enable directional functionality like logs. Metadata 0-3 available for different types. 4-7 and 8-11 used for orientation of those types.
  • Field Details

    • topTextures

      public String[] topTextures
    • sideTextures

      public String[] sideTextures
    • topIcons

      public Icon[] topIcons
    • sideIcons

      public Icon[] sideIcons
  • Constructor Details

    • PillarBlock

      protected PillarBlock(int id, Material material, String[] topTextures, String[] sideTextures)
  • Method Details

    • canRotateOnTurntable

      public boolean canRotateOnTurntable(IBlockAccess access, int x, int y, int z)
      Overrides:
      canRotateOnTurntable in class Block
    • rotateMetadataAroundYAxis

      public int rotateMetadataAroundYAxis(int meta, boolean var2)
      Overrides:
      rotateMetadataAroundYAxis in class Block
    • onBlockPlaced

      public int onBlockPlaced(World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ, int meta)
      Description copied from class: Block
      Called when a block is placed using its ItemBlock. Args: World, X, Y, Z, side, hitX, hitY, hitZ, block metadata
      Overrides:
      onBlockPlaced in class Block
    • damageDropped

      public int damageDropped(int meta)
      Description copied from class: Block
      Determines the damage on the item the block drops. Used in cloth and wood.
      Overrides:
      damageDropped in class Block
    • limitToValidMetadata

      public static int limitToValidMetadata(int meta)
    • getIcon

      public Icon getIcon(int side, int meta)
      Description copied from class: Block
      From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
      Overrides:
      getIcon in class Block
    • registerIcons

      public void registerIcons(IconRegister register)
      Description copied from class: Block
      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
    • renderBlock

      public boolean renderBlock(RenderBlocks render, int x, int y, int z)
      Overrides:
      renderBlock in class Block