Class BloodWoodLeavesBlock


public class BloodWoodLeavesBlock extends BlockLeaves
  • Constructor Details

    • BloodWoodLeavesBlock

      public BloodWoodLeavesBlock(int iBlockID)
  • Method Details

    • breakBlock

      public void breakBlock(World world, int i, int j, int k, int iBlockID, int iMetadata)
      Description copied from class: BlockLeaves
      Called on server worlds only when the block has been replaced by a different block ID, or the same block with a different metadata value, but before the new metadata value is set. Args: World, x, y, z, old block ID, old metadata
      Overrides:
      breakBlock in class BlockLeaves
    • idDropped

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

      public void harvestBlock(World world, EntityPlayer player, int i, int j, int k, int iMetadata)
      Description copied from class: BlockLeaves
      Called when the player destroys a block with an item that can harvest it. (i, j, k) are the coordinates of the block and l is the block's subtype/damage.
      Overrides:
      harvestBlock in class BlockLeaves
    • dropBlockAsItemWithChance

      public void dropBlockAsItemWithChance(World world, int i, int j, int k, int l, float f, int i1)
      Description copied from class: Block
      Drops the block items with a specified chance of dropping the specified items
      Overrides:
      dropBlockAsItemWithChance in class BlockLeaves
    • damageDropped

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

      protected void dropBlockAsItem_do(World world, int i, int j, int k, ItemStack itemStack)
      Description copied from class: Block
      Spawns EntityItem in the world for the given ItemStack if the world is not remote.
      Overrides:
      dropBlockAsItem_do in class Block
    • updateTick

      public void updateTick(World world, int i, int j, int k, Random random)
      Description copied from class: Block
      Ticks the block if it's been scheduled // +++START EDIT+++ FCNOTE: Called on server only // ---END EDIT---
      Overrides:
      updateTick in class BlockLeaves
    • onDestroyedByFire

      public void onDestroyedByFire(World world, int i, int j, int k, int iFireAge, boolean bForcedFireSpread)
      Overrides:
      onDestroyedByFire in class BlockLeaves
    • generateAshOnBurn

      protected void generateAshOnBurn(World world, int i, int j, int k)
      Overrides:
      generateAshOnBurn in class BlockLeaves
    • canRotateOnTurntable

      public boolean canRotateOnTurntable(IBlockAccess iBlockAccess, int i, int j, int k)
      Overrides:
      canRotateOnTurntable in class Block
    • canTransmitRotationHorizontallyOnTurntable

      public boolean canTransmitRotationHorizontallyOnTurntable(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      canTransmitRotationHorizontallyOnTurntable in class Block
    • canTransmitRotationVerticallyOnTurntable

      public boolean canTransmitRotationVerticallyOnTurntable(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      canTransmitRotationVerticallyOnTurntable in class Block
    • isLeafBlock

      public boolean isLeafBlock(IBlockAccess blockAccess, int x, int y, int z)
      Overrides:
      isLeafBlock in class BlockLeaves
    • registerIcons

      @Environment(CLIENT) 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 BlockLeaves
    • getIcon

      @Environment(CLIENT) public Icon getIcon(int iSide, int iMetadata)
      Description copied from class: Block
      From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
      Overrides:
      getIcon in class BlockLeaves
    • getSubBlocks

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

      @Environment(CLIENT) public int getBlockColor()
      Overrides:
      getBlockColor in class BlockLeaves
    • getRenderColor

      @Environment(CLIENT) public int getRenderColor(int i)
      Description copied from class: Block
      Returns the color this block should be rendered. Used by leaves.
      Overrides:
      getRenderColor in class BlockLeaves
    • colorMultiplier

      @Environment(CLIENT) public int colorMultiplier(IBlockAccess iblockaccess, int i, int j, int k)
      Description copied from class: Block
      Returns a integer with hex for 0xrrggbb with this color multiplied against the blocks color. Note only called when first determining what to render.
      Overrides:
      colorMultiplier in class BlockLeaves
    • shouldSideBeRendered

      @Environment(CLIENT) public boolean shouldSideBeRendered(IBlockAccess blockAccess, int iNeighborI, int iNeighborJ, int iNeighborK, int iSide)
      Description copied from class: BlockLeavesBase
      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 BlockLeavesBase