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