Class WoodSidingAndCornerAndDecorativeBlock


public class WoodSidingAndCornerAndDecorativeBlock extends SidingAndCornerAndDecorativeBlock
  • Constructor Details

    • WoodSidingAndCornerAndDecorativeBlock

      public WoodSidingAndCornerAndDecorativeBlock(int iBlockID, String sTextureName, String name)
  • Method Details

    • idDropped

      public int idDropped(int iMetadata, Random random, int iFortuneModifier)
      Description copied from class: Block
      Returns the ID of the items to drop on destruction.
      Overrides:
      idDropped in class Block
    • damageDropped

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

      public boolean doesBenchHaveLeg(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      doesBenchHaveLeg in class SidingAndCornerAndDecorativeBlock
    • getHarvestToolLevel

      public int getHarvestToolLevel(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      getHarvestToolLevel in class Block
    • onBlockDestroyedWithImproperTool

      public void onBlockDestroyedWithImproperTool(World world, EntityPlayer player, int i, int j, int k, int iMetadata)
      Description copied from class: Block
      Called on server only, after the block is removed from the world
      Overrides:
      onBlockDestroyedWithImproperTool in class Block
    • canDropFromExplosion

      public boolean canDropFromExplosion(Explosion explosion)
      Description copied from class: Block
      Return whether this block can drop from an explosion.
      Overrides:
      canDropFromExplosion in class Block
    • onBlockDestroyedByExplosion

      public void onBlockDestroyedByExplosion(World world, int i, int j, int k, Explosion explosion)
      Description copied from class: Block
      // +++START EDIT+++ Called upon the block being destroyed by an explosion // ---END EDIT---
      Overrides:
      onBlockDestroyedByExplosion in class Block
    • getWoodTypeFromBlockID

      protected int getWoodTypeFromBlockID(int blockID)
    • getNumSawDustDroppedForType

      public int getNumSawDustDroppedForType(int iMetadata)
    • getSubBlocks

      @Environment(CLIENT) public void getSubBlocks(int iBlockID, CreativeTabs creativeTabs, List list)
      Description copied from class: Block
      returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)
      Overrides:
      getSubBlocks in class SidingAndCornerAndDecorativeBlock
    • getDamageValue

      @Environment(CLIENT) public int getDamageValue(World world, int x, int y, int z)
      Description copied from class: Block
      Get the block's damage value (for use with pick block).
      Overrides:
      getDamageValue in class Block
    • renderBlockAsItem

      @Environment(CLIENT) public void renderBlockAsItem(RenderBlocks renderBlocks, int itemDamage, float brightness)
      Overrides:
      renderBlockAsItem in class SidingAndCornerAndDecorativeBlock