Package forestry.api.genetics

Examples of forestry.api.genetics.IBreedingTracker


  private void onGenomeTrackerUpdate(PacketNBT packet) {
    assert FMLCommonHandler.instance().getEffectiveSide().isClient();

    EntityPlayer player = Proxies.common.getPlayer();
    IBreedingTracker tracker = null;
    String type = packet.getTagCompound().getString("TYPE");

    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));
    }
  }
View Full Code Here

TOP

Related Classes of forestry.api.genetics.IBreedingTracker

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.