Class SmolderingLogBlock


public class SmolderingLogBlock extends FallingBlock
  • Constructor Details

    • SmolderingLogBlock

      public SmolderingLogBlock(int iBlockID)
  • Method Details

    • 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
    • idDropped

      public int idDropped(int iMetadata, Random rand, int iFortuneModifier)
      Description copied from class: Block
      Returns the ID of the items to drop on destruction.
      Overrides:
      idDropped 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
    • 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
    • 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 i, int j, int k, 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
    • updateTick

      public void updateTick(World world, int i, int j, int k, Random rand)
      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 FallingBlock
    • randomUpdateTick

      public void randomUpdateTick(World world, int i, int j, int k, Random rand)
      Description copied from class: Block
      Called on server only
      Overrides:
      randomUpdateTick in class Block
    • getIsBlockWarm

      public boolean getIsBlockWarm(IBlockAccess blockAccess, int i, int j, int k)
      Description copied from class: Block
      Returns true if the block is warm enough to melt nearby snow or ice
      Overrides:
      getIsBlockWarm in class Block
    • getCanBlockLightItemOnFire

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

      protected void onStartFalling(EntityFallingSand entity)
      Description copied from class: Block
      Only called on server
      Overrides:
      onStartFalling in class Block
    • onFallingUpdate

      public void onFallingUpdate(EntityFallingSand entity)
      Overrides:
      onFallingUpdate in class Block
    • onFinishedFalling

      public boolean onFinishedFalling(EntityFallingSand entity, float fFallDistance)
      Description copied from class: Block
      returns true if the block still exists
      Overrides:
      onFinishedFalling in class Block
    • 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
    • getBurnLevel

      public int getBurnLevel(IBlockAccess blockAccess, int i, int j, int k)
    • getBurnLevel

      public int getBurnLevel(int iMetadata)
    • setBurnLevel

      public void setBurnLevel(World world, int i, int j, int k, int iLevel)
    • setBurnLevel

      public int setBurnLevel(int iMetadata, int iLevel)
    • getShouldSuppressSnapOnFall

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

      public boolean getShouldSuppressSnapOnFall(int iMetadata)
    • setShouldSuppressSnapOnFall

      public int setShouldSuppressSnapOnFall(int iMetadata, boolean bSnap)
    • getIsStump

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

      public boolean getIsStump(int iMetadata)
    • setIsStump

      public int setIsStump(int iMetadata, boolean bStump)
    • 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
    • isSupportedBySolidBlocks

      protected boolean isSupportedBySolidBlocks(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
    • 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
    • renderBlockAsItem

      @Environment(CLIENT) public void renderBlockAsItem(RenderBlocks renderBlocks, int iItemDamage, float fBrightness)
      Overrides:
      renderBlockAsItem in class Block
    • renderFallingBlock

      @Environment(CLIENT) public void renderFallingBlock(RenderBlocks renderBlocks, int i, int j, int k, int iMetadata)
      Description copied from class: Block
      Applies both to falling blocks, and those pushed by pistons
      Overrides:
      renderFallingBlock in class Block
    • randomDisplayTick

      @Environment(CLIENT) public void randomDisplayTick(World world, int i, int j, int k, Random rand)
      Description copied from class: Block
      A randomly called display update to be able to add particles or other items for display
      Overrides:
      randomDisplayTick in class Block