Examples of decodeFromNBT()


Examples of forestry.api.genetics.IBreedingTracker.decodeFromNBT()

    ISpeciesRoot root = AlleleManager.alleleRegistry.getSpeciesRoot(type);
    if(root != null)
      tracker = root.getBreedingTracker(Proxies.common.getRenderWorld(), player.getGameProfile());
    if (tracker != null) {
      tracker.decodeFromNBT(packet.getTagCompound());
      MinecraftForge.EVENT_BUS.post(new ForestryEvent.SyncedBreedingTracker(tracker, player));
    }
  }

  private void onGuiChange(EntityPlayer player, PacketUpdate packet) {
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.