Class LooseCobblestoneSlabBlock


public class LooseCobblestoneSlabBlock extends MortarReceiverSlabBlock
  • Constructor Details

    • LooseCobblestoneSlabBlock

      public LooseCobblestoneSlabBlock(int iBlockID)
  • Method Details

    • getCombinedBlockID

      public int getCombinedBlockID(int iMetadata)
      Specified by:
      getCombinedBlockID in class SlabBlock
    • getCombinedMetadata

      public int getCombinedMetadata(int iMetadata)
      Overrides:
      getCombinedMetadata in class SlabBlock
    • attemptToCombineWithFallingEntity

      public boolean attemptToCombineWithFallingEntity(World world, int i, int j, int k, EntityFallingSand entity)
      Description copied from class: Block
      returns true if the block has combined with the entity
      Overrides:
      attemptToCombineWithFallingEntity in class FallingSlabBlock
    • 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
    • onMortarApplied

      public boolean onMortarApplied(World world, int i, int j, int k)
      Description copied from class: Block
      Should return true if mortar has been successfully applied to block.
      Overrides:
      onMortarApplied in class Block
    • getStepSoundInternal

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

      public boolean isBreakableBarricade(World world, int i, int j, int k, boolean advancedBreaker)
      Overrides:
      isBreakableBarricade 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

      @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