Class LavaReceiverBlock

Direct Known Subclasses:
LooseCobblestoneBlock, LooseStoneBrickBlock

public abstract class LavaReceiverBlock extends MortarReceiverBlock
  • Field Details

  • Constructor Details

    • LavaReceiverBlock

      public LavaReceiverBlock(int iBlockID, Material material)
  • Method Details

    • onBlockAdded

      public void onBlockAdded(World world, int i, int j, int k)
      Description copied from class: Block
      Called whenever the block is added into the world. Args: world, x, y, z // +++START EDIT+++ FCNOTE: Called on server only // ---END EDIT---
      Overrides:
      onBlockAdded in class MortarReceiverBlock
    • 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
    • onNeighborBlockChange

      public void onNeighborBlockChange(World world, int i, int j, int k, int iNeighborBlockID)
      Description copied from class: Block
      Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are their own) Args: x, y, z, neighbor blockID // +++START EDIT+++ FCNOTE: Only called on server // ---END EDIT---
      Overrides:
      onNeighborBlockChange in class FallingBlock
    • canSilkHarvest

      protected boolean canSilkHarvest()
      Description copied from class: Block
      Return true if a player with Silk Touch can harvest this block directly, and not its normal drops.
      Overrides:
      canSilkHarvest 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
    • getStrata

      public int getStrata(IBlockAccess blockAccess, int i, int j, int k)
      returns 0 - 2 regardless of what metadata is used to store strata. BEWARE: different blocks store strata differently
    • getStrata

      public int getStrata(int iMetadata)
      returns 0 - 2 regardless of what metadata is used to store strata. BEWARE: different blocks store strata differently
    • getHasLavaInCracks

      protected boolean getHasLavaInCracks(int iMetadata)
    • getHasLavaInCracks

      protected boolean getHasLavaInCracks(IBlockAccess blockAccess, int i, int j, int k)
    • setHasLavaInCracks

      protected int setHasLavaInCracks(int iMetadata, boolean bHasLava)
    • setHasLavaInCracks

      protected void setHasLavaInCracks(World world, int i, int j, int k, boolean bHasLava)
    • hasLavaAbove

      protected boolean hasLavaAbove(IBlockAccess blockAccess, int i, int j, int k)
    • hasWaterAbove

      protected boolean hasWaterAbove(IBlockAccess blockAccess, int i, int j, int k)
    • scheduleUpdatesForLavaAndWaterContact

      protected boolean scheduleUpdatesForLavaAndWaterContact(World world, int i, int j, int k)
    • getLavaCracksOverlay

      @Environment(CLIENT) protected abstract Icon getLavaCracksOverlay(int metadata)
    • 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
    • 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