Class CementBlock

All Implemented Interfaces:
ITileEntityProvider

public class CementBlock extends BlockContainer
  • Field Details

    • MAX_CEMENT_SPREAD_DIST

      public static final int MAX_CEMENT_SPREAD_DIST
      See Also:
    • CEMENT_TICKS_TO_DRY

      public static final int CEMENT_TICKS_TO_DRY
      See Also:
    • CEMENT_TICKS_TO_PARTIALLY_DRY

      public static final int CEMENT_TICKS_TO_PARTIALLY_DRY
      See Also:
  • Constructor Details

    • CementBlock

      public CementBlock(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.
    • renderAsNormalBlock

      public boolean renderAsNormalBlock()
      Description copied from class: Block
      If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
      Overrides:
      renderAsNormalBlock in class Block
    • isOpaqueCube

      public boolean isOpaqueCube()
      Description copied from class: Block
      // +++START EDIT+++ // ---END EDIT--- Is this block (a) opaque and (b) a full 1m cube? This determines whether or not to render the shared face of two adjacent blocks and also whether the player can attach torches, redstone wire, etc to this block.
      Overrides:
      isOpaqueCube in class Block
    • canCollideCheck

      public boolean canCollideCheck(int i, boolean flag)
      Description copied from class: Block
      Returns whether this block is collideable based on the arguments passed in \n@param par1 block metaData \n@param par2 whether the player right-clicked while holding a boat
      Overrides:
      canCollideCheck in class Block
    • getCollisionBoundingBoxFromPool

      public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
      Overrides:
      getCollisionBoundingBoxFromPool in class Block
    • idDropped

      public int idDropped(int i, Random random, int iFortuneModifier)
      Description copied from class: Block
      Returns the ID of the items to drop on destruction.
      Overrides:
      idDropped in class Block
    • quantityDropped

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

      public int tickRate(World world)
      Description copied from class: Block
      How many world ticks before ticking
      Overrides:
      tickRate in class Block
    • onBlockAdded

      public void onBlockAdded(World world, int i, int j, int k)
      Description copied from class: BlockContainer
      Called whenever the block is added into the world. Args: world, x, y, z
      Overrides:
      onBlockAdded in class BlockContainer
    • updateTick

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

      public ItemStack getStackRetrievedByBlockDispenser(World world, int i, int j, int k)
      Description copied from class: Block
      If the stack returned is null, the block will not be retrieved
      Overrides:
      getStackRetrievedByBlockDispenser in class Block
    • getRenderHeight

      public float getRenderHeight(IBlockAccess blockAccess, int i, int j, int k)
    • getCementSpreadDist

      public int getCementSpreadDist(IBlockAccess blockAccess, int i, int j, int k)
    • setCementSpreadDist

      public void setCementSpreadDist(World world, int i, int j, int k, int iSpreadDist)
    • isCementSourceBlock

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

      public int getCementDryTime(IBlockAccess blockAccess, int i, int j, int k)
    • setCementDryTime

      public void setCementDryTime(World world, int i, int j, int k, int iDryTime)
    • isCementPartiallyDry

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

      protected int checkForLesserSpreadDist(World world, int i, int j, int k, int sourceSpreadDist)
    • getBlockTexture

      @Environment(CLIENT) public Icon getBlockTexture(IBlockAccess blockAccess, int i, int j, int k, int iSide)
      Description copied from class: Block
      Retrieves the block texture to use based on the display side. Args: iBlockAccess, x, y, z, side
      Overrides:
      getBlockTexture in class Block
    • 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 renderBlocks, int i, int j, int k)
      Overrides:
      renderBlock in class Block
    • shouldSideBeRendered

      @Environment(CLIENT) public boolean shouldSideBeRendered(IBlockAccess blockAccess, int iNeighborI, int iNeighborJ, int iNeighborK, int iSide)
      Overrides:
      shouldSideBeRendered in class Block
    • getBlockBrightness

      @Environment(CLIENT) public float getBlockBrightness(IBlockAccess iblockaccess, int i, int j, int k)
      Description copied from class: Block
      How bright to render this block based on the light its receiving. Args: iBlockAccess, x, y, z
      Overrides:
      getBlockBrightness in class Block
    • randomDisplayTick

      @Environment(CLIENT) public void randomDisplayTick(World world, int i, int j, int k, Random random)
      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
    • renderCement

      @Environment(CLIENT) public boolean renderCement(RenderBlocks renderblocks, IBlockAccess iblockaccess, int i, int j, int k, Block block)
    • renderCementGetCornerHeightFromNeighbours

      @Environment(CLIENT) public float renderCementGetCornerHeightFromNeighbours(IBlockAccess iblockaccess, int i, int j, int k)