package net.woogie.extraDimensions.command;

import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommandSender;
import net.minecraft.command.WrongUsageException;
import net.minecraft.util.ChatComponentText;
import net.minecraft.world.biome.BiomeGenBase;

public class CommandXdBiomes extends CommandBase {

	@Override
	public boolean canCommandSenderUseCommand(ICommandSender agent) {
		return true;
	}

	@Override
	public String getCommandName() {
		return "xdbiomes";
	}

	@Override
	public String getCommandUsage(ICommandSender agent) {
		return "/" + getCommandName();
	}

	@Override
	public int getRequiredPermissionLevel() {
		return 0;
	}

	@Override
	public void processCommand(ICommandSender agent, String[] args) {
		if (args.length > 1) {
			throw new WrongUsageException("Usage: " + getCommandUsage(agent),
					new Object[0]);
		}

		// if (args.length > 0) {
		// int page = parseIntWithMin(agent, args[0], 1);
		// page--;
		// BiomeGenBase[] biomes = BiomeGenBase.getBiomeGenArray();
		// String biomeNames = "";
		// boolean[] table = new boolean[256];
		//
		// int total = 0;
		// for (int i = 0; i < biomes.length; i++) {
		// if (biomes[i] != null) {
		// table[i] = true;
		// total++;
		// if ((total >= page * 10) && (total <= 10 + page * 10)) {
		// biomeNames = biomeNames + i + "=" + biomes[i].biomeName
		// + " ";
		// }
		// }
		// }
		// if (total % 10 > 0) {
		// total = total - total % 10 + 10;
		// }
		// agent.addChatMessage(new ChatComponentText("Biomes (" + (page + 1)
		// + "/" + total / 10 + "): " + biomeNames));
		// return;
		// }

		BiomeGenBase[] biomes = BiomeGenBase.getBiomeGenArray();
		String biomeNames = "";
		for (int i = 0; i < biomes.length; i++) {
			if (biomes[i] != null) {
				biomeNames = biomeNames + i + "=" + biomes[i].biomeName + " ";
			}
		}
		agent.addChatMessage(new ChatComponentText("Biomes: " + biomeNames));
	}

}
@@ -862,740 +862,8 @@
 %09%7D%0A%0A
-%09%09// if (args.length %3E 0) %7B%0A%09%09// int page = parseIntWithMin(agent, args%5B0%5D, 1);%0A%09%09// page--;%0A%09%09// BiomeGenBase%5B%5D biomes = BiomeGenBase.getBiomeGenArray();%0A%09%09// String biomeNames = %22%22;%0A%09%09// boolean%5B%5D table = new boolean%5B256%5D;%0A%09%09//%0A%09%09// int total = 0;%0A%09%09// for (int i = 0; i %3C biomes.length; i++) %7B%0A%09%09// if (biomes%5Bi%5D != null) %7B%0A%09%09// table%5Bi%5D = true;%0A%09%09// total++;%0A%09%09// if ((total %3E= page * 10) && (total %3C= 10 + page * 10)) %7B%0A%09%09// biomeNames = biomeNames + i + %22=%22 + biomes%5Bi%5D.biomeName%0A%09%09// + %22 %22;%0A%09%09// %7D%0A%09%09// %7D%0A%09%09// %7D%0A%09%09// if (total %25 10 %3E 0) %7B%0A%09%09// total = total - total %25 10 + 10;%0A%09%09// %7D%0A%09%09// agent.addChatMessage(new ChatComponentText(%22Biomes (%22 + (page + 1)%0A%09%09// + %22/%22 + total / 10 + %22): %22 + biomeNames));%0A%09%09// return;%0A%09%09// %7D%0A%0A
 %09%09Bi

Remove unused code