Class BlockFlowing

Direct Known Subclasses:
LavaBlockFlowing, WaterBlockFlowing

public class BlockFlowing extends BlockFluid
  • Constructor Details

    • BlockFlowing

      protected BlockFlowing(int par1, Material par2Material)
  • Method Details

    • getBlocksMovement

      public boolean getBlocksMovement(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
      Description copied from class: Block
      FCNOTE: This is misnamed and returns true if the block *doesn't* block movement
      Overrides:
      getBlocksMovement in class BlockFluid
    • updateTick

      public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
      Ticks the block if it's been scheduled
      Overrides:
      updateTick in class Block
    • getSmallestFlowDecay

      protected int getSmallestFlowDecay(World par1World, int par2, int par3, int par4, int par5)
      // +++START EDIT+++ // ---END EDIT--- getSmallestFlowDecay(World world, intx, int y, int z, int currentSmallestFlowDecay) - Looks up the flow decay at the coordinates given and returns the smaller of this value or the provided currentSmallestFlowDecay. If one value is valid and the other isn't, the valid value will be returned. Valid values are >= 0. Flow decay is the amount that a liquid has dissipated. 0 indicates a source block.
    • onBlockAdded

      public void onBlockAdded(World par1World, int par2, int par3, int par4)
      Called whenever the block is added into the world. Args: world, x, y, z
      Overrides:
      onBlockAdded in class BlockFluid
    • func_82506_l

      public boolean func_82506_l()
      Overrides:
      func_82506_l in class Block
    • onNeighborBlockChange

      public void onNeighborBlockChange(World world, int i, int j, int k, int iNeighborBlockID)
      Description copied from class: BlockFluid
      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
      Overrides:
      onNeighborBlockChange in class BlockFluid
    • blockBlocksFlow

      public boolean blockBlocksFlow(World world, int i, int j, int k)