Package mekanism.api.gas

Examples of mekanism.api.gas.GasNetwork


    {
      TileEntity tileEntity = message.coord4D.getTileEntity(player.worldObj);

      if(tileEntity instanceof IGridTransmitter)
      {
        GasNetwork net = ((IGridTransmitter<GasNetwork>)tileEntity).getTransmitterNetwork();

        if(message.gasType != null)
        {
          net.refGas = message.gasType;
        }

        net.gasStored = message.gasStack;
        net.didTransfer = message.didGasTransfer;
      }
    }
    else if(message.packetType == PacketType.FLUID)
    {
      TileEntity tileEntity = message.coord4D.getTileEntity(player.worldObj);

      if(tileEntity instanceof IGridTransmitter)
      {
        FluidNetwork net = ((IGridTransmitter<FluidNetwork>)tileEntity).getTransmitterNetwork();

        if(message.fluidType != null)
        {
          net.refFluid = message.fluidType;
        }

        net.fluidStored = message.fluidStack;
        net.didTransfer = message.didFluidTransfer;
        net.fluidScale = net.getScale();
      }
    }
   
    return null;
  }
View Full Code Here


  }

  @Override
  public GasNetwork createNetworkFromSingleTransmitter(IGridTransmitter<GasNetwork> transmitter)
  {
    return new GasNetwork(transmitter);
  }
View Full Code Here

  }

  @Override
  public GasNetwork createNetworkByMergingSet(Set<GasNetwork> networks)
  {
    return new GasNetwork(networks);
  }
View Full Code Here

TOP

Related Classes of mekanism.api.gas.GasNetwork

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.