Class BlockStep


public class BlockStep extends BlockHalfSlab
  • Field Details

    • blockStepTypes

      public static final String[] blockStepTypes
      The list of the types of step blocks.
  • Constructor Details

    • BlockStep

      public BlockStep(int par1, boolean par2)
  • Method Details

    • getIcon

      public Icon getIcon(int par1, int par2)
      From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
      Overrides:
      getIcon in class Block
    • registerIcons

      public void registerIcons(IconRegister par1IconRegister)
      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
    • createStackedBlock

      protected ItemStack createStackedBlock(int par1)
      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.
      Overrides:
      createStackedBlock in class Block
    • getFullSlabName

      public String getFullSlabName(int par1)
      Returns the slab block name with step type.
      Specified by:
      getFullSlabName in class BlockHalfSlab
    • idDropped

      public int idDropped(int metadata, Random random, int fortune)
      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
    • getHarvestToolLevel

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

      protected StepSound getStepSoundInternal(World world, int meta)
      Overrides:
      getStepSoundInternal in class Block
    • 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
    • canMobsSpawnOn

      public boolean canMobsSpawnOn(World world, int i, int j, int k)
      Description copied from class: Block
      This is only a first-pass indicator as to whether ANY mobs can spawn on top of the block, so stuff like leaves where only Jungle Spiders can spawn on them, should still return true.
      Overrides:
      canMobsSpawnOn in class BlockHalfSlab
    • getBlockType

      public int getBlockType(int iMetadata)
    • getBlockType

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

      public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)
      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