Class CobblestoneSlabBlock


public class CobblestoneSlabBlock extends BlockHalfSlab
  • Constructor Details

    • CobblestoneSlabBlock

      public CobblestoneSlabBlock(int iBlockID, boolean bDoubleSlab)
  • 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: BlockHalfSlab
      Determines the damage on the item the block drops. Used in cloth and wood.
      Overrides:
      damageDropped in class BlockHalfSlab
    • getFullSlabName

      public String getFullSlabName(int metadata)
      Description copied from class: BlockHalfSlab
      Returns the slab block name with step type.
      Specified by:
      getFullSlabName in class BlockHalfSlab
    • createStackedBlock

      protected ItemStack createStackedBlock(int iMetadata)
      Description copied from class: Block
      Returns an item stack containing a single instance of the current block type. 'i' is the block's subtype/damage and is ignored for blocks which do not support subtypes. Blocks which cannot be harvested should return null. // +++START EDIT+++ FCNOTE: This is the function used to create the silk-touch drop // ---END EDIT---
      Overrides:
      createStackedBlock 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
    • idPicked

      public int idPicked(World par1World, int par2, int par3, int par4)
      Description copied from class: BlockHalfSlab
      only called by clickMiddleMouseButton , and passed to inventory.setCurrentItem (along with isCreative)
      Overrides:
      idPicked in class BlockHalfSlab
    • getDamageValue

      public int getDamageValue(World par1World, int x, int y, int z)
      Description copied from class: BlockHalfSlab
      Get the block's damage value (for use with pick block).
      Overrides:
      getDamageValue in class BlockHalfSlab
    • hasContactPointToFullFace

      public boolean hasContactPointToFullFace(IBlockAccess blockAccess, int i, int j, int k, int iFacing)
      Overrides:
      hasContactPointToFullFace in class Block
    • hasContactPointToSlabSideFace

      public boolean hasContactPointToSlabSideFace(IBlockAccess blockAccess, int i, int j, int k, int iFacing, boolean bIsSlabUpsideDown)
      Overrides:
      hasContactPointToSlabSideFace in class Block
    • hasMortar

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