Class BlockRedstoneRepeater


public class BlockRedstoneRepeater extends BlockRedstoneLogic
  • Field Details

    • repeaterTorchOffset

      public static final double[] repeaterTorchOffset
      The offsets for the two torches in redstone repeater blocks.
  • Constructor Details

    • BlockRedstoneRepeater

      protected BlockRedstoneRepeater(int par1, boolean par2)
  • Method Details

    • onBlockActivated

      public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)
      Called upon block activation (right click on the block.)
      Overrides:
      onBlockActivated in class Block
    • func_94481_j_

      protected int func_94481_j_(int par1)
      Specified by:
      func_94481_j_ in class BlockRedstoneLogic
    • func_94485_e

      protected BlockRedstoneLogic func_94485_e()
      Specified by:
      func_94485_e in class BlockRedstoneLogic
    • func_94484_i

      protected BlockRedstoneLogic func_94484_i()
      Specified by:
      func_94484_i in class BlockRedstoneLogic
    • idDropped

      public int idDropped(int par1, Random par2Random, int par3)
      Returns the ID of the items to drop on destruction.
      Overrides:
      idDropped in class Block
    • idPicked

      public int idPicked(World par1World, int par2, int par3, int par4)
      only called by clickMiddleMouseButton , and passed to inventory.setCurrentItem (along with isCreative)
      Overrides:
      idPicked in class Block
    • getRenderType

      public int getRenderType()
      The type of render function that is called for this block
      Overrides:
      getRenderType in class BlockRedstoneLogic
    • func_94476_e

      public boolean func_94476_e(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
      Overrides:
      func_94476_e in class BlockRedstoneLogic
    • canRedstoneConnectToSide

      public boolean canRedstoneConnectToSide(IBlockAccess blockAccess, int x, int y, int z, int flatDirection)
      Description copied from class: Block
      Should redstone dust redirect itself to this side of the block
      Overrides:
      canRedstoneConnectToSide in class Block
    • func_94477_d

      protected boolean func_94477_d(int par1)
      Overrides:
      func_94477_d in class BlockRedstoneLogic
    • randomDisplayTick

      public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
      A randomly called display update to be able to add particles or other items for display
      Overrides:
      randomDisplayTick in class Block
    • breakBlock

      public void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6)
      Called on server worlds only when the block has been replaced by a different block ID, or the same block with a different metadata value, but before the new metadata value is set. Args: World, x, y, z, old block ID, old metadata
      Overrides:
      breakBlock in class Block
    • onPostBlockPlaced

      public void onPostBlockPlaced(World world, int i, int j, int k, int iMetadata)
      Description copied from class: Block
      Called after a block is placed
      Overrides:
      onPostBlockPlaced in class Block
    • renderBlock

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