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;
}
}