// Path: src/main/java/ca/wescook/nutrition/capabilities/INutrientManager.java
// public interface INutrientManager {
// 	// Return all nutrients and values
// 	Map<Nutrient, Float> get();
// 
// 	// Return value of specific nutrient
// 	Float get(Nutrient nutrient);
// 
// 	// Set value of specific nutrient
// 	void set(Nutrient nutrient, Float value);
// 
// 	// Update all nutrients
// 	void set(Map<Nutrient, Float> nutrientData);
// 
// 	// Increase specific nutrient by amount
// 	void add(Nutrient nutrient, float amount);
// 
// 	// Increase list of nutrients by amount
// 	void add(List<Nutrient> nutrientData, float amount);
// 
// 	// Decrease specific nutrient by amount
// 	void subtract(Nutrient nutrient, float amount);
// 
// 	// Decrease list of nutrients by amount
// 	void subtract(List<Nutrient> nutrientData, float amount);
// 
// 	// Reset specific nutrient to default nutrition
// 	void reset(Nutrient nutrient);
// 
// 	// Reset all nutrients to default nutrition
// 	void reset();
// 
// 	// Internal: Called to update Nutrient object references in player's capability
// 	void updateCapability();
// }
// 
// Path: src/main/java/ca/wescook/nutrition/network/Sync.java
// public class Sync {
// 	// Server sends a nutrition update to client
// 	// Only call from server
// 	public static void serverRequest(EntityPlayer player) {
// 		if (!player.world.isRemote) // Server-only
// 			ModPacketHandler.NETWORK_CHANNEL.sendTo(new PacketNutritionResponse.Message(player), (EntityPlayerMP) player);
// 	}
// 
// 	// Client requests a nutrition update from server
// 	// Only call from client
// 	public static void clientRequest() {
// 		ModPacketHandler.NETWORK_CHANNEL.sendToServer(new PacketNutritionRequest.Message());
// 	}
// }
// 
// Path: src/main/java/ca/wescook/nutrition/nutrients/Nutrient.java
// public class Nutrient {
// 	public String name;
// 	public ItemStack icon;
// 	public int color;
// 	public float decay;
// 	public boolean visible;
// 	public List<String> foodOreDict = new ArrayList<>();
// 	public List<ItemStack> foodItems = new ArrayList<>();
// }
// 
// Path: src/main/java/ca/wescook/nutrition/nutrients/NutrientList.java
// public class NutrientList {
// 	private static List<Nutrient> nutrients = new ArrayList<>();
// 
// 	// Register list of JSON objects
// 	public static void register(List<Nutrient> nutrientsIn) {
// 		nutrients.clear();
// 		nutrients.addAll(nutrientsIn);
// 	}
// 
// 	// Return all nutrients
// 	public static List<Nutrient> get() {
// 		return nutrients;
// 	}
// 
// 	// Return all visible nutrients
// 	public static List<Nutrient> getVisible() {
// 		List<Nutrient> visibleNutrients = new ArrayList<>();
// 		for (Nutrient nutrient : nutrients)
// 			if (nutrient.visible)
// 				visibleNutrients.add(nutrient);
// 		return visibleNutrients;
// 	}
// 
// 	// Return nutrient by name (null if not found)
// 	public static Nutrient getByName(String name) {
// 		for (Nutrient nutrient : nutrients) {
// 			if (nutrient.name.equals(name))
// 				return nutrient;
// 		}
// 		return null;
// 	}
// }


import ca.wescook.nutrition.capabilities.INutrientManager;
import ca.wescook.nutrition.network.Sync;
import ca.wescook.nutrition.nutrients.Nutrient;
import ca.wescook.nutrition.nutrients.NutrientList;
import net.minecraft.command.CommandBase;
import net.minecraft.command.CommandException;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.text.TextComponentString;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.CapabilityInject;
import org.apache.commons.lang3.math.NumberUtils;
import javax.annotation.Nullable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
package ca.wescook.nutrition.utility;



public class ChatCommand extends CommandBase {
	@CapabilityInject(INutrientManager.class)
// Path: src/main/java/ca/wescook/nutrition/capabilities/INutrientManager.java
// public interface INutrientManager {
// 	// Return all nutrients and values
// 	Map<Nutrient, Float> get();
// 
// 	// Return value of specific nutrient
// 	Float get(Nutrient nutrient);
// 
// 	// Set value of specific nutrient
// 	void set(Nutrient nutrient, Float value);
// 
// 	// Update all nutrients
// 	void set(Map<Nutrient, Float> nutrientData);
// 
// 	// Increase specific nutrient by amount
// 	void add(Nutrient nutrient, float amount);
// 
// 	// Increase list of nutrients by amount
// 	void add(List<Nutrient> nutrientData, float amount);
// 
// 	// Decrease specific nutrient by amount
// 	void subtract(Nutrient nutrient, float amount);
// 
// 	// Decrease list of nutrients by amount
// 	void subtract(List<Nutrient> nutrientData, float amount);
// 
// 	// Reset specific nutrient to default nutrition
// 	void reset(Nutrient nutrient);
// 
// 	// Reset all nutrients to default nutrition
// 	void reset();
// 
// 	// Internal: Called to update Nutrient object references in player's capability
// 	void updateCapability();
// }
// 
// Path: src/main/java/ca/wescook/nutrition/network/Sync.java
// public class Sync {
// 	// Server sends a nutrition update to client
// 	// Only call from server
// 	public static void serverRequest(EntityPlayer player) {
// 		if (!player.world.isRemote) // Server-only
// 			ModPacketHandler.NETWORK_CHANNEL.sendTo(new PacketNutritionResponse.Message(player), (EntityPlayerMP) player);
// 	}
// 
// 	// Client requests a nutrition update from server
// 	// Only call from client
// 	public static void clientRequest() {
// 		ModPacketHandler.NETWORK_CHANNEL.sendToServer(new PacketNutritionRequest.Message());
// 	}
// }
// 
// Path: src/main/java/ca/wescook/nutrition/nutrients/Nutrient.java
// public class Nutrient {
// 	public String name;
// 	public ItemStack icon;
// 	public int color;
// 	public float decay;
// 	public boolean visible;
// 	public List<String> foodOreDict = new ArrayList<>();
// 	public List<ItemStack> foodItems = new ArrayList<>();
// }
// 
// Path: src/main/java/ca/wescook/nutrition/nutrients/NutrientList.java
// public class NutrientList {
// 	private static List<Nutrient> nutrients = new ArrayList<>();
// 
// 	// Register list of JSON objects
// 	public static void register(List<Nutrient> nutrientsIn) {
// 		nutrients.clear();
// 		nutrients.addAll(nutrientsIn);
// 	}
// 
// 	// Return all nutrients
// 	public static List<Nutrient> get() {
// 		return nutrients;
// 	}
// 
// 	// Return all visible nutrients
// 	public static List<Nutrient> getVisible() {
// 		List<Nutrient> visibleNutrients = new ArrayList<>();
// 		for (Nutrient nutrient : nutrients)
// 			if (nutrient.visible)
// 				visibleNutrients.add(nutrient);
// 		return visibleNutrients;
// 	}
// 
// 	// Return nutrient by name (null if not found)
// 	public static Nutrient getByName(String name) {
// 		for (Nutrient nutrient : nutrients) {
// 			if (nutrient.name.equals(name))
// 				return nutrient;
// 		}
// 		return null;
// 	}
// }


// Path: src/main/java/ca/wescook/nutrition/utility/ChatCommand.java
import ca.wescook.nutrition.capabilities.INutrientManager;
import ca.wescook.nutrition.network.Sync;
import ca.wescook.nutrition.nutrients.Nutrient;
import ca.wescook.nutrition.nutrients.NutrientList;
import net.minecraft.command.CommandBase;
import net.minecraft.command.CommandException;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.text.TextComponentString;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.CapabilityInject;
import org.apache.commons.lang3.math.NumberUtils;
import javax.annotation.Nullable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

package ca.wescook.nutrition.utility;



public class ChatCommand extends CommandBase {
	@CapabilityInject(INutrientManager.class)
	private static final Capability<INutrientManager> NUTRITION_CAPABILITY = null;