Class OreBlock

Direct Known Subclasses:
OreBlockStaged

public class OreBlock extends BlockOre
  • Constructor Details

    • OreBlock

      public OreBlock(int iBlockID)
  • Method Details

    • hasStrata

      public boolean hasStrata()
      Overrides:
      hasStrata in class Block
    • getMetadataConversionForStrataLevel

      public int getMetadataConversionForStrataLevel(int iLevel, int iMetadata)
      Overrides:
      getMetadataConversionForStrataLevel in class Block
    • getBlockHardness

      public float getBlockHardness(World world, int i, int j, int k)
      Description copied from class: Block
      Returns the block hardness at a location. Args: world, x, y, z
      Overrides:
      getBlockHardness in class Block
    • getExplosionResistance

      public float getExplosionResistance(Entity entity, World world, int i, int j, int k)
      Overrides:
      getExplosionResistance in class Block
    • getStrata

      public int getStrata(IBlockAccess blockAccess, int i, int j, int k)
    • getStrata

      public int getStrata(int iMetadata)
    • getRequiredToolLevelForStrata

      public int getRequiredToolLevelForStrata(IBlockAccess blockAccess, int i, int j, int k)
    • 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
    • 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
    • renderBlock

      @Environment(CLIENT) public boolean renderBlock(RenderBlocks renderer, int i, int j, int k)
      Overrides:
      renderBlock in class Block
    • renderBlockSecondPass

      @Environment(CLIENT) public void renderBlockSecondPass(RenderBlocks renderBlocks, int i, int j, int k, boolean bFirstPassResult)
      Description copied from class: Block
      If the block has a second pass, like a kiln cooking overlay texture, it should Override this method. This method does not call the overlay by default to cut down on rendering time, since this function is called by every single loaded block. Note that this function is necessary to prevent potential recursion within RenderBlock, if it were to call its own overlays directly, and then potentially get called with a texture overlay itself through RenderBlockWithTexture.
      Overrides:
      renderBlockSecondPass in class Block
    • doesItemRenderAsBlock

      @Environment(CLIENT) public boolean doesItemRenderAsBlock(int iItemDamage)
      Overrides:
      doesItemRenderAsBlock in class Block
    • getSubBlocks

      @Environment(CLIENT) 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
    • renderBlockMovedByPiston

      @Environment(CLIENT) public void renderBlockMovedByPiston(RenderBlocks renderBlocks, int i, int j, int k)
      Overrides:
      renderBlockMovedByPiston in class Block