Package forestry.core.network

Examples of forestry.core.network.PacketNBT


    try {
      PacketUpdate packetU;
      switch (packetID) {
      // CLIENT
      case PacketIds.PROP_SEND_FILTER_SET:
        PacketNBT packetN = new PacketNBT();
        packetN.readData(data);
        onFilterSet(packetN);
        break;

      // SERVER
      case PacketIds.PROP_REQUEST_FILTER_SET:
View Full Code Here


  // Server side
  public void sendFilterSet(EntityPlayer player) {
    NBTTagCompound nbttagcompound = new NBTTagCompound();
    this.writeToNBT(nbttagcompound);
    Proxies.net.sendToPlayer(new PacketNBT(PacketIds.PROP_SEND_FILTER_SET, nbttagcompound), player);
  }
View Full Code Here

  @Override
  public void synchToPlayer(EntityPlayer player) {
    setModeName(getCommonTracker(player).getModeName());
    NBTTagCompound nbttagcompound = new NBTTagCompound();
    encodeToNBT(nbttagcompound);
    Proxies.net.sendToPlayer(new PacketNBT(PacketIds.GENOME_TRACKER_UPDATE, nbttagcompound), player);
  }
View Full Code Here

TOP

Related Classes of forestry.core.network.PacketNBT

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.