Class WhiteStoneBlock


public class WhiteStoneBlock extends FullBlock
  • Constructor Details

    • WhiteStoneBlock

      public WhiteStoneBlock(int iBlockID)
  • Method Details

    • 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
    • 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
    • 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
    • canConvertBlock

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

      public boolean shouldPlayStandardConvertSound(World world, int x, int y, int z)
      Overrides:
      shouldPlayStandardConvertSound 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
    • 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
    • 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)
    • 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