Package crazypants.enderio.conduit.gas

Examples of crazypants.enderio.conduit.gas.IGasConduit


    TileEntity tile = Minecraft.getMinecraft().theWorld.getTileEntity(x, y, z);
    if(pkt.tc == null || !(tile instanceof IConduitBundle)) {
      return;
    }
    IConduitBundle bundle = (IConduitBundle) tile;
    IGasConduit con = bundle.getConduit(IGasConduit.class);
    if(con == null) {
      return;
    }
    con.readFromNBT(pkt.tc, TileConduitBundle.NBT_VERSION);
  }
View Full Code Here


  // ---- Mekanism Gas Tubes

  @Override
  public int receiveGas(ForgeDirection side, GasStack stack) {
    IGasConduit gc = getConduit(IGasConduit.class);
    if(gc != null) {
      return gc.receiveGas(side, stack);
    }
    return 0;
  }
View Full Code Here

    return 0;
  }

  @Override
  public GasStack drawGas(ForgeDirection side, int amount) {
    IGasConduit gc = getConduit(IGasConduit.class);
    if(gc != null) {
      return gc.drawGas(side, amount);
    }
    return null;
  }
View Full Code Here

    return null;
  }

  @Override
  public boolean canReceiveGas(ForgeDirection side, Gas type) {
    IGasConduit gc = getConduit(IGasConduit.class);
    if(gc != null) {
      return gc.canReceiveGas(side, type);
    }
    return false;
  }
View Full Code Here

    return false;
  }

  @Override
  public boolean canDrawGas(ForgeDirection side, Gas type) {
    IGasConduit gc = getConduit(IGasConduit.class);
    if(gc != null) {
      return gc.canDrawGas(side, type);
    }
    return false;
  }
View Full Code Here

TOP

Related Classes of crazypants.enderio.conduit.gas.IGasConduit

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.