Package buildcraft.api.gates

Examples of buildcraft.api.gates.IGate


    return false;
  }
  @Override
  public boolean isTriggerActive(IStatementContainer container, IStatementParameter[] parameters) {
    if (container instanceof IGate) {
      IGate gate = (IGate) container;
      if (gate.getPipe() instanceof IEnergyHandler) {
        if (isValidEnergyHandler((IEnergyHandler) gate.getPipe())) {
          return isTriggeredEnergyHandler((IEnergyHandler) gate.getPipe(), ForgeDirection.UNKNOWN);
        }
      }
    }
   
    return false;
View Full Code Here


  public boolean isTriggerActive(IStatementContainer container, IStatementParameter[] parameters) {
    if (!(container instanceof IGate)) {
      return false;
    }
   
    IGate gate = (IGate) container;
    TileGenericPipe tile = (TileGenericPipe) gate.getPipe().getTile();
    int inputLevel = tile.redstoneInput;
    if (parameters.length > 0 && parameters[0] instanceof StatementParameterRedstoneGateSideOnly &&
        ((StatementParameterRedstoneGateSideOnly) parameters[0]).isOn) {
      inputLevel = tile.redstoneInputSide[gate.getSide().ordinal()];
    }
   
    return inputLevel == level;
  }
View Full Code Here

TOP

Related Classes of buildcraft.api.gates.IGate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.