Class BlockIce


public class BlockIce extends BlockBreakable
  • Constructor Details

    • BlockIce

      public BlockIce(int par1)
  • Method Details

    • quantityDropped

      public int quantityDropped(Random par1Random)
      Returns the quantity of items to drop on block destruction.
      Overrides:
      quantityDropped in class Block
    • getMobilityFlag

      public int getMobilityFlag()
      Returns the mobility information of the block, 0 = free, 1 = can't push but can move over, 2 = total immobility and stop pistons
      Overrides:
      getMobilityFlag in class Block
    • harvestBlock

      public void harvestBlock(World world, EntityPlayer player, int i, int j, int k, int iMetadata)
      Description copied from class: Block
      Called when the player destroys a block with an item that can harvest it. (i, j, k) are the coordinates of the block and l is the block's subtype/damage. // +++START EDIT+++ FCNOTE: Only called on server // ---END EDIT---
      Overrides:
      harvestBlock 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
    • 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
    • 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 Block
    • getDamageValue

      public int getDamageValue(World world, int x, int y, int z)
      Description copied from class: Block
      Get the block's damage value (for use with pick block).
      Overrides:
      getDamageValue in class Block
    • getMovementModifier

      public float getMovementModifier(World world, int i, int j, int k)
      Overrides:
      getMovementModifier in class Block
    • adjustMetadataForPistonMove

      public int adjustMetadataForPistonMove(int iMetadata)
      Overrides:
      adjustMetadataForPistonMove in class Block
    • hasLargeCenterHardPointToFacing

      public boolean hasLargeCenterHardPointToFacing(IBlockAccess blockAccess, int i, int j, int k, int iFacing, boolean bIgnoreTransparency)
      Description copied from class: Block
      large attachment points that can support a full block width
      Overrides:
      hasLargeCenterHardPointToFacing in class Block
    • getCanBeSetOnFireDirectly

      public boolean getCanBeSetOnFireDirectly(IBlockAccess blockAccess, int i, int j, int k)
      Description copied from class: Block
      Whether the block itself can be set on fire, rather than a neighboring block being set to a fire block
      Overrides:
      getCanBeSetOnFireDirectly in class Block
    • getCanBeSetOnFireDirectlyByItem

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

      public boolean setOnFireDirectly(World world, int i, int j, int k)
      Overrides:
      setOnFireDirectly in class Block
    • getChanceOfFireSpreadingDirectlyTo

      public int getChanceOfFireSpreadingDirectlyTo(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      getChanceOfFireSpreadingDirectlyTo in class Block
    • isNonSourceIce

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

      public void setIsNonSourceIce(World world, int i, int j, int k, boolean bNonSource)
    • isNonSourceIceFromMetadata

      public boolean isNonSourceIceFromMetadata(int iMetadata)
    • getRenderBlockPass

      @Environment(CLIENT) public int getRenderBlockPass()
      Description copied from class: Block
      // +++START EDIT+++ // ---END EDIT--- Returns which pass should this block be rendered on. 0 for solids and 1 for alpha
      Overrides:
      getRenderBlockPass in class Block