Package buildcraft.transport

Examples of buildcraft.transport.PipeTransport


public class PipeWrapper extends Pipe<PipeTransport> {
  public final LogisticsTileGenericPipe tile;
  public final TilePipeWrapper wrapper;
 
  public PipeWrapper(LogisticsTileGenericPipe pipe) {
    super(new PipeTransport() {
      @Override
      public PipeType getPipeType() {
        return PipeType.STRUCTURE;
      }
    }, null);
View Full Code Here


    @Override
    public void actionActivate(IStatementContainer container, IStatementParameter[] parameters) {
      IPipe pipe = ((Gate) container).getPipe();
   
      if (pipe != null && pipe instanceof Pipe) {
      PipeTransport transport = ((Pipe) pipe).transport;
      if (parameters[0] != null && parameters[0] instanceof StatementParameterDirection) {
        ForgeDirection side = ((StatementParameterDirection) parameters[0]).direction;
   
        if (side != ForgeDirection.UNKNOWN) {
            transport.allowInput(side, state.inputOpen);
            transport.allowOutput(side, state.outputOpen);
        }
        } else {
          for (ForgeDirection side : ForgeDirection.VALID_DIRECTIONS) {
            transport.allowInput(side, state.inputOpen);
            transport.allowOutput(side, state.outputOpen);
          }
        }
    }
    }
View Full Code Here

TOP

Related Classes of buildcraft.transport.PipeTransport

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.