Class SnowCoverBlock


public class SnowCoverBlock extends GroundCoverBlock
  • Constructor Details

    • SnowCoverBlock

      public SnowCoverBlock(int iBlockID)
  • Method Details

    • onEntityCollidedWithBlock

      public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
      Description copied from class: Block
      Triggered whenever an entity collides with this block (enters into the block). Args: world, x, y, z, entity
      Overrides:
      onEntityCollidedWithBlock in class Block
    • canPlaceBlockAt

      public boolean canPlaceBlockAt(World world, int i, int j, int k)
      Description copied from class: Block
      Checks to see if its valid to put this block at the specified coordinates. Args: world, x, y, z
      Overrides:
      canPlaceBlockAt in class GroundCoverBlock
    • 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
    • idDropped

      public int idDropped(int par1, Random par2Random, int par3)
      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 par1Random)
      Description copied from class: Block
      Returns the quantity of items to drop on block destruction.
      Overrides:
      quantityDropped in class Block
    • canDropFromExplosion

      public boolean canDropFromExplosion(Explosion explosion)
      Description copied from class: Block
      Return whether this block can drop from an explosion.
      Overrides:
      canDropFromExplosion in class Block
    • onBlockDestroyedWithImproperTool

      public void onBlockDestroyedWithImproperTool(World world, EntityPlayer player, int i, int j, int k, int metadata)
      Description copied from class: Block
      Called on server only, after the block is removed from the world
      Overrides:
      onBlockDestroyedWithImproperTool in class Block
    • canConvertBlock

      public boolean canConvertBlock(ItemStack stack, World world, int i, int j, int k)
      Overrides:
      canConvertBlock in class Block
    • convertBlock

      public boolean convertBlock(ItemStack stack, World world, int i, int j, int k, int iFromSide)
      Description copied from class: Block
      Returns false if the block has not been replaced with another, and should be removed
      Overrides:
      convertBlock in class Block
    • 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 Block
    • onFluidFlowIntoBlock

      public void onFluidFlowIntoBlock(World world, int i, int j, int k, BlockFluid newBlock)
      Overrides:
      onFluidFlowIntoBlock 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
    • onBrokenByPistonPush

      public void onBrokenByPistonPush(World world, int i, int j, int k, int iMetadata)
      Overrides:
      onBrokenByPistonPush in class Block
    • canSnowCoverReplaceBlock

      public static boolean canSnowCoverReplaceBlock(World world, int i, int j, int k)
    • isMaxSnowHeightLimited

      public boolean isMaxSnowHeightLimited(World world, int i, int j, int k)
    • raiseSnowOnSides

      public void raiseSnowOnSides(World world, int i, int j, int k)
    • collisionRayTrace

      public MovingObjectPosition collisionRayTrace(World world, int i, int j, int k, Vec3 startRay, Vec3 endRay)
      Overrides:
      collisionRayTrace in class GroundCoverBlock
    • getSnowHeight

      public float getSnowHeight(IBlockAccess blockAccess, int i, int j, int k)
    • getBlockBoundsFromPoolBasedOnState

      public AxisAlignedBB getBlockBoundsFromPoolBasedOnState(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      getBlockBoundsFromPoolBasedOnState in class Block
    • getSelectedBoundingBoxFromPool

      public AxisAlignedBB getSelectedBoundingBoxFromPool(World world, int i, int j, int k)
      Overrides:
      getSelectedBoundingBoxFromPool in class GroundCoverBlock
    • 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