Class BlockStone


public class BlockStone extends FullBlock
  • Constructor Details

    • BlockStone

      public BlockStone(int blockID)
  • Method Details

    • getBlockHardness

      public float getBlockHardness(World world, int i, int j, int k)
      Description copied from class: Block
      Returns the block hardness at a location. Args: world, x, y, z
      Overrides:
      getBlockHardness in class Block
    • getExplosionResistance

      public float getExplosionResistance(Entity entity, World world, int i, int j, int k)
      Overrides:
      getExplosionResistance in class Block
    • getStepSoundInternal

      protected StepSound getStepSoundInternal(World world, int meta)
      Overrides:
      getStepSoundInternal in class Block
    • idDropped

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

      public int damageDropped(int metadata)
      Description copied from class: Block
      Determines the damage on the item the block drops. Used in cloth and wood.
      Overrides:
      damageDropped in class Block
    • dropBlockAsItemWithChance

      public void dropBlockAsItemWithChance(World world, int i, int j, int k, int iMetadata, float fChance, int iFortuneModifier)
      Description copied from class: Block
      Drops the block items with a specified chance of dropping the specified items
      Overrides:
      dropBlockAsItemWithChance in class Block
    • dropComponentItemsOnBadBreak

      public boolean dropComponentItemsOnBadBreak(World world, int i, int j, int k, int iMetadata, float fChanceOfDrop)
      Description copied from class: Block
      Called by explosions and improper tool use. Should return true if the block processes its own drops through this method, false otherwise Note that the block may no longer be at the specified position when this is called
      Overrides:
      dropComponentItemsOnBadBreak 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 x, int y, int z, 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
    • shouldPlayStandardConvertSound

      public boolean shouldPlayStandardConvertSound(World world, int x, int y, int z)
      Overrides:
      shouldPlayStandardConvertSound in class Block
    • getHarvestToolLevel

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

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

      public boolean isNaturalStone(IBlockAccess blockAccess, int i, int j, int k)
      Description copied from class: Block
      Determines whether other stone will "connect" to this block for purposes of determing whether a stone block can be individually harvested without breaking apart
      Overrides:
      isNaturalStone in class Block
    • isBlockInfestable

      public boolean isBlockInfestable(EntityLiving entity, int metadata)
      Overrides:
      isBlockInfestable in class Block
      Parameters:
      entity - for having hook for other infesting mobs
      metadata - for having single blockID be infestable depending on metadata
      Returns:
    • getBlockIDOnInfest

      public int getBlockIDOnInfest(EntityLiving entity, int metadata)
      Overrides:
      getBlockIDOnInfest in class Block
    • getStrata

      public int getStrata(IBlockAccess blockAccess, int i, int j, int k)
    • getStrata

      public int getStrata(int iMetadata)
    • setIsCracked

      public void setIsCracked(World world, int i, int j, int k, boolean bCracked)
    • setIsCracked

      public int setIsCracked(int iMetadata, boolean bIsCracked)
    • getIsCracked

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

      public boolean getIsCracked(int iMetadata)
    • getUberToolLevel

      public int getUberToolLevel(IBlockAccess blockAccess, int i, int j, int k)
    • getSubBlocks

      @Environment(CLIENT) public void getSubBlocks(int iBlockID, CreativeTabs creativeTabs, List list)
      Description copied from class: Block
      returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)
      Overrides:
      getSubBlocks in class Block
    • getDamageValue

      @Environment(CLIENT) 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
    • 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
    • getIcon

      @Environment(CLIENT) public Icon getIcon(int iSide, int iMetadata)
      Description copied from class: Block
      From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
      Overrides:
      getIcon in class Block