Class CobblestoneBlock

java.lang.Object
net.minecraft.src.Block
btw.block.blocks.CobblestoneBlock

public class CobblestoneBlock extends Block
  • Constructor Details

    • CobblestoneBlock

      public CobblestoneBlock(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
    • 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
    • onBlockDestroyedWithImproperTool

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

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

      public void dropItemsOnDestroyedByMiningCharge(World world, int x, int y, int z, int metadata)
      Overrides:
      dropItemsOnDestroyedByMiningCharge in class Block
    • canBeConvertedByMobSpawner

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

      public void convertBlockFromMobSpawner(World world, int x, int y, int z)
      Overrides:
      convertBlockFromMobSpawner in class Block
    • getStepSoundInternal

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

      public int getStrata(IBlockAccess blockAccess, int i, int j, int k)
      returns 0 - 2 regardless of what metadata is used to store strata. BEWARE: different blocks store strata differently
    • getStrata

      public int getStrata(int iMetadata)
      returns 0 - 2 regardless of what metadata is used to store strata. BEWARE: different blocks store strata differently
    • getSubBlocks

      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

      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

      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

      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