Class RedstoneOreBlock


public class RedstoneOreBlock extends OreBlockStaged
  • Constructor Details

    • RedstoneOreBlock

      public RedstoneOreBlock(int iBlockID, boolean bGlowing)
  • Method Details

    • tickRate

      public int tickRate(World par1World)
      Description copied from class: Block
      How many world ticks before ticking
      Overrides:
      tickRate in class Block
    • onBlockClicked

      public void onBlockClicked(World world, int i, int j, int k, EntityPlayer player)
      Description copied from class: Block
      Called when the block is clicked by a player. Args: x, y, z, entityPlayer
      Overrides:
      onBlockClicked in class Block
    • onBlockActivated

      public boolean onBlockActivated(World world, int i, int j, int k, EntityPlayer player, int iFacing, float fXClick, float fYClick, float fZClick)
      Description copied from class: Block
      Called upon block activation (right click on the block.)
      Overrides:
      onBlockActivated in class Block
    • onEntityWalking

      public void onEntityWalking(World world, int i, int j, int k, Entity entity)
      Description copied from class: Block
      Called whenever an entity is walking on top of this block. Args: world, x, y, z, entity
      Overrides:
      onEntityWalking in class Block
    • updateTick

      public void updateTick(World world, int i, int j, int k, Random rand)
      Description copied from class: Block
      Ticks the block if it's been scheduled // +++START EDIT+++ FCNOTE: Called on server only // ---END EDIT---
      Overrides:
      updateTick in class Block
    • 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
    • idDropped

      public int idDropped(int iMetadata, Random rand, int iFortuneModifier)
      Description copied from class: BlockOre
      Returns the ID of the items to drop on destruction.
      Overrides:
      idDropped in class BlockOre
    • quantityDroppedWithBonus

      public int quantityDroppedWithBonus(int iFortuneModifier, Random rand)
      Description copied from class: BlockOre
      Returns the usual quantity dropped by the block plus a bonus of 1 to 'i' (inclusive).
      Overrides:
      quantityDroppedWithBonus in class BlockOre
    • quantityDropped

      public int quantityDropped(Random rand)
      Description copied from class: BlockOre
      Returns the quantity of items to drop on block destruction.
      Overrides:
      quantityDropped in class BlockOre
    • idDroppedOnConversion

      public int idDroppedOnConversion(boolean dropPiles, int iMetadata)
      Specified by:
      idDroppedOnConversion in class OreBlockStaged
    • quantityDroppedOnConversion

      public int quantityDroppedOnConversion(Random rand)
      Overrides:
      quantityDroppedOnConversion in class OreBlockStaged
    • getRequiredToolLevelForOre

      public int getRequiredToolLevelForOre(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      getRequiredToolLevelForOre in class OreBlockStaged
    • setGlowing

      protected void setGlowing(World world, int i, int j, int k)
    • emitParticles

      protected void emitParticles(World world, int i, int j, int k)
    • 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