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