Package forestry.core.network

Examples of forestry.core.network.PacketPayload


    }
  }

  public void cycleFilter() {
    if(!Proxies.common.isSimulating(player.worldObj)) {
      PacketPayload payload = new PacketPayload(1, 0, 0);
      payload.intPayload[0] = 2;
      PacketUpdate packet = new PacketUpdate(PacketIds.GUI_SELECTION_CHANGE, payload);
      Proxies.net.sendToServer(packet);
      return;
    }
View Full Code Here


    rebuildStationsList();
  }

  private void sendSelection(boolean advance) {
    PacketPayload payload = new PacketPayload(1, 0, 0);
    payload.intPayload[0] = advance ? 0 : 1;
    PacketUpdate packet = new PacketUpdate(PacketIds.GUI_SELECTION_CHANGE, payload);
    Proxies.net.sendToServer(packet);
  }
View Full Code Here

    lastUpdate = tile.getGame().getLastUpdate();
    tile.sendBoard(player);
  }

  public void sendTokenClick(int index) {
    PacketPayload payload = new PacketPayload(1, 0, 0);
    payload.intPayload[0] = index;
    PacketUpdate packet = new PacketUpdate(PacketIds.GUI_SELECTION_CHANGE, payload);
    Proxies.net.sendToServer(packet);
  }
View Full Code Here

    PacketUpdate packet = new PacketUpdate(PacketIds.GUI_SELECTION_CHANGE, payload);
    Proxies.net.sendToServer(packet);
  }

  public void sendProbeClick() {
    PacketPayload payload = new PacketPayload(1, 0, 0);
    payload.intPayload[0] = -1;
    PacketUpdate packet = new PacketUpdate(PacketIds.GUI_SELECTION_CHANGE, payload);
    Proxies.net.sendToServer(packet);
  }
View Full Code Here

  public ICircuitLayout getLayout() {
    return inventory.getLayout();
  }

  public void advanceSelection(int index, World world) {
    PacketPayload payload = new PacketPayload(2, 0, 0);
    payload.intPayload[0] = index;
    payload.intPayload[1] = 0;
    sendSelectionChange(payload);
  }
View Full Code Here

    payload.intPayload[1] = 0;
    sendSelectionChange(payload);
  }

  public void regressSelection(int index, World world) {
    PacketPayload payload = new PacketPayload(2, 0, 0);
    payload.intPayload[0] = index;
    payload.intPayload[1] = 1;
    sendSelectionChange(payload);
  }
View Full Code Here

    sendSelection(player);
  }

  public void sendSelection(EntityPlayer player) {
    PacketPayload payload = new PacketPayload(0, 0, 1);
    payload.stringPayload[0] = inventory.getLayout().getUID();
    Proxies.net.sendToPlayer(new PacketUpdate(PacketIds.GUI_SELECTION, payload), player);
  }
View Full Code Here

  public void setRecipient(String recipientName, EnumAddressee type) {
    if (StringUtils.isBlank(recipientName) || type == null)
      return;

    // / Send to server
    PacketPayload payload = new PacketPayload(0,0,2);
    payload.stringPayload[0] = recipientName;
    payload.stringPayload[1] = type.toString();

    PacketUpdate packet = new PacketUpdate(PacketIds.LETTER_RECIPIENT, payload);
    Proxies.net.sendToServer(packet);
View Full Code Here

  public void setText(String text) {
    getLetter().setText(text);

    // / Send to server
    PacketPayload payload = new PacketPayload(0, 0, 1);
    payload.stringPayload[0] = text;

    PacketUpdate packet = new PacketUpdate(PacketIds.LETTER_TEXT, payload);
    Proxies.net.sendToServer(packet);
View Full Code Here

  public void setAddress(String addressName) {

    if (StringUtils.isBlank(addressName))
      return;

    PacketPayload payload = new PacketPayload(0, 0, 1);
    payload.stringPayload[0] = addressName;

    PacketUpdate packet = new PacketUpdate(PacketIds.TRADING_ADDRESS_SET, payload);
    Proxies.net.sendToServer(packet);
View Full Code Here

TOP

Related Classes of forestry.core.network.PacketPayload

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.