/**
  * If hasComparatorInputOverride returns true, the return value from this is used instead of the
  * redstone signal strength when this block inputs to a comparator.
  */
 public int getComparatorInputOverride(World world, int x, int y, int z, int l) {
   return Container.calcRedstoneFromInventory(this.func_149951_m(world, x, y, z));
 }
Exemple #2
0
 /**
  * If hasComparatorInputOverride returns true, the return value from this is used instead of the
  * redstone signal strength when this block inputs to a comparator.
  */
 @Override
 public int getComparatorInputOverride(World world, int x, int y, int z, int meta) {
   return Container.calcRedstoneFromInventory(getHopperTE(world, x, y, z));
 }
 @Override
 public int getComparatorInputOverride(World par1World, int par2, int par3, int par4, int par5) {
   return Container.calcRedstoneFromInventory(
       (IInventory) par1World.getTileEntity(par2, par3, par4));
 }
 /**
  * If hasComparatorInputOverride returns true, the return value from this is used instead of the
  * redstone signal strength when this block inputs to a comparator.
  */
 public int getComparatorInputOverride(World par1World, int par2, int par3, int par4, int par5) {
   return Container.calcRedstoneFromInventory(this.getInventory(par1World, par2, par3, par4));
 }
 /**
  * Returns the container's comparator signal strength. Calculated automatically if it implements
  * IInventory. Overridden if necessary.
  */
 protected int getComparatorSignalStengthInternal() {
   return ((this instanceof IInventory)
       ? Container.calcRedstoneFromInventory((IInventory) this)
       : 0);
 }
 @Override
 public int getComparatorInputOverride(World world, int x, int y, int z, int i) {
   return Container.calcRedstoneFromInventory((IInventory) world.getTileEntity(x, y, z));
 }