Package buildcraft.factory

Examples of buildcraft.factory.TileRefinery


        } else {
          container.setFilter(position, null);
          container.refinery.tankManager.get(position).colorRenderCache = 0xFFFFFF;
        }
      } else {
        TileRefinery ref = (TileRefinery) this.tile;

        if (position == 0) {
          container.setFilter(position, ref.tanks[0].getFluidType());
        } else if (position == 1) {
          container.setFilter(position, ref.tanks[1].getFluidType());
View Full Code Here


    return (TileRefinery) tile;
  }

  private void onRefinerySelect(EntityPlayer playerEntity, PacketUpdate packet) throws IOException {

    TileRefinery tile = getRefinery(playerEntity.worldObj, packet.posX, packet.posY, packet.posZ);
    if (tile == null || packet.payload == null) {
      return;
    }

    ByteBuf stream = packet.payload.stream;

    tile.setFilter(stream.readByte(), FluidRegistry.getFluid(stream.readShort()));
  }
View Full Code Here

TOP

Related Classes of buildcraft.factory.TileRefinery

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.