public static void setPlayerFoodStats(EntityPlayer player, FoodStatsTFC foodstats) { foodstats.writeNBT(player.getEntityData()); }
public static FoodStatsTFC getPlayerFoodStats(EntityPlayer player) { FoodStatsTFC foodstats = new FoodStatsTFC(); foodstats.readNBT(player.getEntityData()); return foodstats; }