Class BlockComparator

All Implemented Interfaces:
ITileEntityProvider

public class BlockComparator extends BlockRedstoneLogic implements ITileEntityProvider
  • Constructor Details

    • BlockComparator

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

    • 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
    • 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
    • getRenderType

      public int getRenderType()
      The type of render function that is called for this block
      Overrides:
      getRenderType in class BlockRedstoneLogic
    • 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 BlockRedstoneLogic
    • func_96470_c

      protected boolean func_96470_c(int par1)
      Overrides:
      func_96470_c in class BlockRedstoneLogic
    • func_94480_d

      protected int func_94480_d(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
      Overrides:
      func_94480_d in class BlockRedstoneLogic
    • func_94490_c

      public boolean func_94490_c(int par1)
    • isGettingInput

      protected boolean isGettingInput(World par1World, int par2, int par3, int par4, int par5)
      Overrides:
      isGettingInput in class BlockRedstoneLogic
    • getInputStrength

      protected int getInputStrength(World par1World, int par2, int par3, int par4, int par5)
      Returns the signal strength at one input of the block. Args: world, X, Y, Z, side
      Overrides:
      getInputStrength in class BlockRedstoneLogic
    • getTileEntityComparator

      public TileEntityComparator getTileEntityComparator(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
      Returns the blockTileEntity at given coordinates.
    • 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_94479_f

      protected void func_94479_f(World par1World, int par2, int par3, int par4, int par5)
      Overrides:
      func_94479_f in class BlockRedstoneLogic
    • updateTick

      public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
      Ticks the block if it's been scheduled
      Overrides:
      updateTick in class BlockRedstoneLogic
    • onBlockAdded

      public void onBlockAdded(World par1World, int par2, int par3, int par4)
      Called whenever the block is added into the world. Args: world, x, y, z
      Overrides:
      onBlockAdded in class BlockRedstoneLogic
    • 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
    • onBlockEventReceived

      public boolean onBlockEventReceived(World par1World, int par2, int par3, int par4, int par5, int par6)
      Called when the block receives a BlockEvent - see World.addBlockEvent. By default, passes it on to the tile entity at this location. Args: world, x, y, z, blockID, EventID, event parameter
      Overrides:
      onBlockEventReceived in class Block
    • createNewTileEntity

      public TileEntity createNewTileEntity(World par1World)
      Returns a new instance of a block's tile entity class. Called on placing the block.
      Specified by:
      createNewTileEntity in interface ITileEntityProvider
    • renderBlock

      @Environment(CLIENT) public boolean renderBlock(RenderBlocks render, int par2, int par3, int par4)
      Overrides:
      renderBlock in class BlockRedstoneLogic