Class BlockLog


public class BlockLog extends BlockRotatedPillar
  • Field Details

    • woodType

      public static final String[] woodType
      The type of tree this log came from.
    • chewedLogArray

      public static Block[] chewedLogArray
  • Constructor Details

    • BlockLog

      protected BlockLog(int blockID)
  • Method Details

    • canEndermenPickUpBlock

      public boolean canEndermenPickUpBlock(World world, int x, int y, int z)
      Overrides:
      canEndermenPickUpBlock in class Block
    • quantityDropped

      public int quantityDropped(Random par1Random)
      Description copied from class: Block
      Returns the quantity of items to drop on block destruction.
      Overrides:
      quantityDropped in class Block
    • idDropped

      public int idDropped(int par1, Random par2Random, int par3)
      Description copied from class: Block
      Returns the ID of the items to drop on destruction.
      Overrides:
      idDropped in class Block
    • getBlockHardness

      public float getBlockHardness(World world, int i, int j, int k)
      Description copied from class: Block
      Returns the block hardness at a location. Args: world, x, y, z
      Overrides:
      getBlockHardness in class Block
    • getIsProblemToRemove

      public boolean getIsProblemToRemove(ItemStack toolStack, IBlockAccess blockAccess, int i, int j, int k)
      Description copied from class: Block
      The following is for stumps and such, which are a pain to remove regardless of whether their overall block has relevant tool effeciencies
      Overrides:
      getIsProblemToRemove in class Block
    • getDoesStumpRemoverWorkOnBlock

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

      public boolean canConvertBlock(ItemStack stack, World world, int i, int j, int k)
      Overrides:
      canConvertBlock in class Block
    • convertBlock

      public boolean convertBlock(ItemStack stack, World world, int x, int y, int z, int iFromSide)
      Description copied from class: Block
      Returns false if the block has not been replaced with another, and should be removed
      Overrides:
      convertBlock in class Block
    • shouldPlayStandardConvertSound

      public boolean shouldPlayStandardConvertSound(World world, int x, int y, int z)
      Overrides:
      shouldPlayStandardConvertSound in class Block
    • breakBlock

      public void breakBlock(World world, int x, int y, int z, int blockID, int metadata)
      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
    • getCanBlockBeIncinerated

      public boolean getCanBlockBeIncinerated(World world, int i, int j, int k)
      Description copied from class: Block
      Used by Hibachi to determine if it can remove the block above it when lit
      Overrides:
      getCanBlockBeIncinerated 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
    • onDestroyedByFire

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

      public int rotateMetadataAroundYAxis(int iMetadata, boolean bReverse)
      Overrides:
      rotateMetadataAroundYAxis in class Block
    • getFurnaceBurnTime

      public int getFurnaceBurnTime(int iItemDamage)
      Overrides:
      getFurnaceBurnTime in class Block
    • isLog

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

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

      public void convertToSmouldering(World world, int i, int j, int k)
    • getIsStump

      public boolean getIsStump(int iMetadata)
    • getIsStump

      public boolean getIsStump(IBlockAccess blockAccess, int i, int j, int k)
    • isDeadStump

      public boolean isDeadStump(IBlockAccess blockAccess, int i, int j, int k)
    • isWorkStumpItemConversionTool

      public boolean isWorkStumpItemConversionTool(ItemStack stack, World world, int i, int j, int k)
    • limitToValidMetadata

      public static int limitToValidMetadata(int par0)
    • getIcon

      @Environment(CLIENT) public Icon getIcon(int side, int metadata)
      Description copied from class: BlockRotatedPillar
      From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
      Overrides:
      getIcon in class BlockRotatedPillar
    • 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
    • getSubBlocks

      @Environment(CLIENT) public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)
      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 Block
    • registerIcons

      @Environment(CLIENT) public void registerIcons(IconRegister par1IconRegister)
      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
    • getSideIcon

      @Environment(CLIENT) protected Icon getSideIcon(int par1)
      Description copied from class: BlockRotatedPillar
      The icon for the side of the block.
      Specified by:
      getSideIcon in class BlockRotatedPillar
    • getEndIcon

      @Environment(CLIENT) protected Icon getEndIcon(int par1)
      Description copied from class: BlockRotatedPillar
      The icon for the tops and bottoms of the block.
      Overrides:
      getEndIcon in class BlockRotatedPillar