Package forestry.core.network

Examples of forestry.core.network.PacketTileUpdate


  }

  // / SMP
  @Override
  public void sendNetworkUpdate() {
    PacketTileUpdate packet = new PacketTileUpdate(this);
    Proxies.net.sendNetworkPacket(packet, xCoord, yCoord, zCoord);
  }
View Full Code Here


    Proxies.net.sendNetworkPacket(packet, xCoord, yCoord, zCoord);
  }

  @Override
  public Packet getDescriptionPacket() {
    PacketTileUpdate packet = new PacketTileUpdate(this);
    return packet.getPacket();
  }
View Full Code Here

  public abstract void fromPacketPayload(PacketPayload payload);

  @Override
  public void fromPacket(ForestryPacket packetRaw) {
    PacketTileUpdate packet = (PacketTileUpdate) packetRaw;
    if (orientation != packet.getOrientation()) {
      orientation = packet.getOrientation();
      worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
    }
    errorState = packet.getErrorState();
    owner = packet.getOwner();
    access = packet.getAccess();
    fromPacketPayload(packet.payload);
  }
View Full Code Here

    if (!Proxies.common.isSimulating(worldObj))
      return;

    Proxies.net.sendNetworkPacket(new PacketInventoryStack(PacketIds.IINVENTORY_STACK, xCoord, yCoord, zCoord, SLOT_QUEEN, queenStack), xCoord, yCoord,
        zCoord);
    Proxies.net.sendNetworkPacket(new PacketTileUpdate(this), xCoord, yCoord, zCoord);
  }
View Full Code Here

TOP

Related Classes of forestry.core.network.PacketTileUpdate

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.