Examples of PacketLeafUpdate


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

Examples of forestry.arboriculture.network.PacketLeafUpdate

  }

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

Examples of forestry.arboriculture.network.PacketLeafUpdate

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

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

Examples of forestry.arboriculture.network.PacketLeafUpdate

  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

Examples of forestry.arboriculture.network.PacketLeafUpdate

  }

  @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
Copyright © 2018 www.massapi.com. 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.