Class FiniteBurningTorchBlock

All Implemented Interfaces:
ITileEntityProvider

public class FiniteBurningTorchBlock extends TorchBlockBurningBase implements ITileEntityProvider
  • Constructor Details

    • FiniteBurningTorchBlock

      public FiniteBurningTorchBlock(int iBlockID)
  • Method Details

    • createNewTileEntity

      public TileEntity createNewTileEntity(World world)
      Description copied from interface: ITileEntityProvider
      Returns a new instance of a block's tile entity class. Called on placing the block.
      Specified by:
      createNewTileEntity in interface ITileEntityProvider
    • dropBlockAsItemWithChance

      public void dropBlockAsItemWithChance(World world, int i, int j, int k, int iMetadata, float fChance, int iFortuneModifier)
      Description copied from class: Block
      Drops the block items with a specified chance of dropping the specified items
      Overrides:
      dropBlockAsItemWithChance 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
    • onBlockPlacedBy

      public void onBlockPlacedBy(World world, int i, int j, int k, EntityLivingBase entity, ItemStack stack)
      Description copied from class: Block
      Called when the block is placed in the world. // +++START EDIT+++ FCNOTE: Called AFTER the block is placed, unlike onBlockPlaced() // ---END EDIT---
      Overrides:
      onBlockPlacedBy in class Block
    • canBeCrushedByFallingEntity

      public boolean canBeCrushedByFallingEntity(World world, int i, int j, int k, EntityFallingSand entity)
      Overrides:
      canBeCrushedByFallingEntity in class Block
    • onCrushedByFallingEntity

      public void onCrushedByFallingEntity(World world, int i, int j, int k, EntityFallingSand entity)
      Overrides:
      onCrushedByFallingEntity in class Block
    • onFluidFlowIntoBlock

      public void onFluidFlowIntoBlock(World world, int i, int j, int k, BlockFluid newBlock)
      Overrides:
      onFluidFlowIntoBlock in class TorchBlockBurningBase
    • onRotatedAroundBlockOnTurntableToFacing

      public boolean onRotatedAroundBlockOnTurntableToFacing(World world, int i, int j, int k, int iFacing)
      Description copied from class: Block
      Returns false if the block was destroyed and should not be rotated
      Overrides:
      onRotatedAroundBlockOnTurntableToFacing in class Block
    • setIsSputtering

      public void setIsSputtering(World world, int i, int j, int k, boolean bSputtering)
    • setIsSputtering

      public static int setIsSputtering(int iMetadata, boolean bIsSputtering)
    • getIsSputtering

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

      public static boolean getIsSputtering(int iMetadata)
    • 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