Package logisticspipes.routing

Examples of logisticspipes.routing.ItemRoutingInformation.readFromNBT()


  public static ItemRoutingInformation restoreFromExtraNBTData(TravelingItem item) {
    if(!item.hasExtraData()) return null;
    NBTTagCompound nbt = item.getExtraData();
    if(nbt.hasKey("LPRoutingInformation")) {
      ItemRoutingInformation routingInformation = new ItemRoutingInformation();
      routingInformation.readFromNBT(nbt.getCompoundTag("LPRoutingInformation"));
      return routingInformation;
    }
    return null;
  }
}
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.