Class BloodWoodLogBlock

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

public class BloodWoodLogBlock extends Block
  • Constructor Details

    • BloodWoodLogBlock

      public BloodWoodLogBlock(int iBlockID)
  • Method Details

    • onBlockPlaced

      public int onBlockPlaced(World world, int i, int j, int k, int iFacing, float fClickX, float fClickY, float fClickZ, int iMetadata)
      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
    • breakBlock

      public void breakBlock(World world, int i, int j, int k, int iBlockID, int iMetadata)
      Description copied from class: Block
      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 ??ejects contained items into the world, and notifies neighbours of an update, as appropriate?? // +++START EDIT+++ FCNOTE: Called on server only. Called AFTER block is set, so it is no longer valid at pos. // ---END EDIT---
      Overrides:
      breakBlock 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 Block
    • dropComponentItemsOnBadBreak

      public boolean dropComponentItemsOnBadBreak(World world, int i, int j, int k, int iMetadata, float fChanceOfDrop)
      Description copied from class: Block
      Called by explosions and improper tool use. Should return true if the block processes its own drops through this method, false otherwise Note that the block may no longer be at the specified position when this is called
      Overrides:
      dropComponentItemsOnBadBreak in class Block
    • getFacing

      public int getFacing(int iMetadata)
      Overrides:
      getFacing in class Block
    • setFacing

      public int setFacing(int iMetadata, int iFacing)
      Overrides:
      setFacing in class Block
    • toggleFacing

      public boolean toggleFacing(World world, int i, int j, int k, boolean bReverse)
      Description copied from class: Block
      Cycle through all the possible facings for a block returns true if the facing has actually changed as a result of this call
      Overrides:
      toggleFacing in class Block
    • isLog

      public boolean isLog(IBlockAccess blockAccess, int x, int y, int z)
      Overrides:
      isLog in class Block
    • getCanGrow

      public boolean getCanGrow(IBlockAccess blockAccess, int i, int j, int k)
    • setCanGrow

      public void setCanGrow(World world, int i, int j, int k, boolean bCanGrow)
    • grow

      public void grow(World world, int i, int j, int k, Random random)
    • attemptToGrowIntoBlock

      public boolean attemptToGrowIntoBlock(World world, int i, int j, int k, int iGrowthDirection)
    • growLeaves

      public void growLeaves(World world, int i, int j, int k)
    • isBloodLeafBlock

      public boolean isBloodLeafBlock(World world, int i, int j, int k)
    • countBloodWoodNeighboringOnBlockWithSoulSand

      public int countBloodWoodNeighboringOnBlockWithSoulSand(World world, int i, int j, int k)
    • countBloodWoodNeighboringOnBlockIncludingDiagnals

      public int countBloodWoodNeighboringOnBlockIncludingDiagnals(World world, int i, int j, int k)
    • notifySurroundingBloodLeavesOfBlockRemoval

      public void notifySurroundingBloodLeavesOfBlockRemoval(World world, int i, int j, int k)
    • 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 Block
    • 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 Block
    • renderBlock

      @Environment(CLIENT) public boolean renderBlock(RenderBlocks renderer, int i, int j, int k)
      Overrides:
      renderBlock in class Block
    • renderBlockSecondPass

      @Environment(CLIENT) public void renderBlockSecondPass(RenderBlocks renderBlocks, int i, int j, int k, boolean bFirstPassResult)
      Description copied from class: Block
      If the block has a second pass, like a kiln cooking overlay texture, it should Override this method. This method does not call the overlay by default to cut down on rendering time, since this function is called by every single loaded block. Note that this function is necessary to prevent potential recursion within RenderBlock, if it were to call its own overlays directly, and then potentially get called with a texture overlay itself through RenderBlockWithTexture.
      Overrides:
      renderBlockSecondPass in class Block