Package forestry.arboriculture.network

Examples of forestry.arboriculture.network.PacketLeafUpdate


  public void onPacketData(int packetID, DataInputStream data, EntityPlayer player) {
    try {

      switch (packetID) {
      case PacketIds.LEAF_UPDATE:
        PacketLeafUpdate packet = new PacketLeafUpdate();
        packet.readData(data);
        onLeafUpdate(packet);
        break;
      }

    } catch(Exception ex) {
View Full Code Here


  }

  /* NETWORK */
  @Override
  public Packet getDescriptionPacket() {
    return new PacketLeafUpdate(this).getPacket();
  }
View Full Code Here

    return new PacketLeafUpdate(this).getPacket();
  }

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

  public void sendNetworkUpdate() {
    Proxies.net.sendNetworkPacket(new PacketLeafUpdate(this), xCoord, yCoord, zCoord);
  }

  private void sendNetworkUpdateRipening() {
    Proxies.net.sendNetworkPacket(new PacketLeafUpdate(this, determineFruitColour()), xCoord, yCoord, zCoord);
  }
View Full Code Here

  }

  @Override
  public void fromPacket(ForestryPacket packetRaw) {

    PacketLeafUpdate packet = (PacketLeafUpdate)packetRaw;
    if(packet.isRipeningUpdate()) {
      colourFruits = packet.colourFruits;
    } else {
      readFromNBT(packet.getTagCompound());
      isFruitLeaf = packet.isFruitLeaf();
      isPollinatedState = packet.isPollinated();
      textureIndexFancy = packet.textureIndexFancy;
      textureIndexPlain = packet.textureIndexPlain;
      textureIndexFruits = packet.textureIndexFruit;
      colourLeaves = packet.colourLeaves;
      colourFruits = packet.colourFruits;
View Full Code Here

TOP

Related Classes of forestry.arboriculture.network.PacketLeafUpdate

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.