Class LegacySilverfishBlock

java.lang.Object
net.minecraft.src.Block
net.minecraft.src.BlockSilverfish
btw.block.blocks.legacy.LegacySilverfishBlock

public class LegacySilverfishBlock extends BlockSilverfish
  • Constructor Details

    • LegacySilverfishBlock

      public LegacySilverfishBlock(int iBlockID)
  • Method Details

    • randomUpdateTick

      public void randomUpdateTick(World world, int i, int j, int k, Random rand)
      Description copied from class: Block
      Called on server only
      Overrides:
      randomUpdateTick in class Block
    • createStackedBlock

      protected ItemStack createStackedBlock(int iMetadata)
      Description copied from class: BlockSilverfish
      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 BlockSilverfish
    • hasStrata

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

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

      public static int getMetadataConversionOnInfest(int iBlockID, int iMetadata)
    • randomDisplayTick

      @Environment(CLIENT) public void randomDisplayTick(World world, int i, int j, int k, Random rand)
      Description copied from class: Block
      A randomly called display update to be able to add particles or other items for display
      Overrides:
      randomDisplayTick in class Block
    • getIcon

      @Environment(CLIENT) public Icon getIcon(int iSide, int iMetadata)
      Description copied from class: BlockSilverfish
      From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
      Overrides:
      getIcon in class BlockSilverfish
    • renderBlock

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

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

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