Package forestry.core.network

Examples of forestry.core.network.PacketGuiInteger


      fluidId = fluidStack.getFluid().getID();
      fluidAmount = fluidStack.amount;
    }

    player.sendProgressBarUpdate(container, tankIndex * NETWORK_DATA + 0, fluidId);
    PacketGuiInteger packet = new PacketGuiInteger(container.windowId, tankIndex * NETWORK_DATA + 1, fluidAmount);
    Proxies.net.sendToPlayer(packet, (EntityPlayerMP)player);
  }
View Full Code Here


        if (fluidStack != null) {
          fluidId = fluidStack.fluidID;
          fluidAmount = fluidStack.amount;
        }
        player.sendProgressBarUpdate(container, tankIndex * NETWORK_DATA + 0, fluidId);
        PacketGuiInteger packet = new PacketGuiInteger(container.windowId, tankIndex * NETWORK_DATA + 1, fluidAmount);
        Proxies.net.sendToPlayer(packet, player);
      } else if (fluidStack != null && prev != null) {
        if (fluidStack.getFluid() != prev.getFluid())
          player.sendProgressBarUpdate(container, tankIndex * NETWORK_DATA + 0, fluidStack.fluidID);
        if (fluidStack.amount != prev.amount) {
          PacketGuiInteger packet = new PacketGuiInteger(container.windowId, tankIndex * NETWORK_DATA + 1, fluidStack.amount);
          Proxies.net.sendToPlayer(packet, player);
        }
        if (color != pColor) {
          PacketGuiInteger packet = new PacketGuiInteger(container.windowId, tankIndex * NETWORK_DATA + 2, color);
          Proxies.net.sendToPlayer(packet, player);
        }
      }
    }

View Full Code Here

TOP

Related Classes of forestry.core.network.PacketGuiInteger

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.