Class NetherrackBlockFalling


public class NetherrackBlockFalling extends FallingBlock
  • Constructor Details

    • NetherrackBlockFalling

      public NetherrackBlockFalling(int iBlockID)
  • Method Details

    • idDropped

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

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

      public int getEfficientToolLevel(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      getEfficientToolLevel in class Block
    • 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
    • onStartFalling

      protected void onStartFalling(EntityFallingSand entity)
      Description copied from class: Block
      Only called on server
      Overrides:
      onStartFalling in class Block
    • onFinishFalling

      public void onFinishFalling(World world, int i, int j, int k, int iMetadata)
      Description copied from class: Block
      This is actually called when a block lands safely. Do not rename as BlockSand has a child method off of this
      Overrides:
      onFinishFalling in class Block
    • onFallingUpdate

      public void onFallingUpdate(EntityFallingSand entity)
      Overrides:
      onFallingUpdate in class Block
    • onBlockDestroyedLandingFromFall

      public void onBlockDestroyedLandingFromFall(World world, int i, int j, int k, int iMetadata)
      Description copied from class: Block
      Called on server only
      Overrides:
      onBlockDestroyedLandingFromFall in class Block
    • doesInfiniteBurnToFacing

      public boolean doesInfiniteBurnToFacing(IBlockAccess blockAccess, int i, int j, int k, int iFacing)
      Overrides:
      doesInfiniteBurnToFacing 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
    • 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