Updated Forge compilation to ForgeGradle.

This commit is contained in:
sk89q
2014-04-05 19:33:05 -07:00
parent e0a2873c99
commit 69797cfbea
11 changed files with 467 additions and 66 deletions

View File

@ -19,12 +19,14 @@
package com.sk89q.worldedit.forge;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.sk89q.minecraft.util.commands.Command;
import com.sk89q.worldedit.BiomeTypes;
import com.sk89q.worldedit.LocalConfiguration;
import com.sk89q.worldedit.LocalWorld;
import com.sk89q.worldedit.ServerInterface;
import cpw.mods.fml.common.FMLCommonHandler;
import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommand;
import net.minecraft.command.ICommandSender;
import net.minecraft.command.ServerCommandManager;
import net.minecraft.entity.EntityList;
@ -33,12 +35,9 @@ import net.minecraft.server.MinecraftServer;
import net.minecraft.world.WorldServer;
import net.minecraftforge.common.DimensionManager;
import com.sk89q.minecraft.util.commands.Command;
import com.sk89q.worldedit.BiomeTypes;
import com.sk89q.worldedit.LocalWorld;
import com.sk89q.worldedit.ServerInterface;
import cpw.mods.fml.common.FMLCommonHandler;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class ForgeServerInterface extends ServerInterface {
private final WorldEditMod mod;
@ -114,6 +113,15 @@ public class ForgeServerInterface extends ServerInterface {
public String getCommandUsage(ICommandSender icommandsender) {
return "/" + cmd.aliases()[0] + " " + cmd.usage();
}
@Override
public int compareTo(Object o) {
if (o instanceof ICommand) {
return super.compareTo((ICommand) o);
} else {
return -1;
}
}
});
}
}

View File

@ -4,19 +4,19 @@
"modid": "WorldEdit",
"name": "WorldEdit",
"description": "WorldEdit is an easy-to-use in-game world editor for Minecraft, supporting both single player and multiplayer.",
"version": "%VERSION%",
"mcversion": "%MCVERSION%",
"version": "${version}",
"mcversion": "${mcVersion}",
"url": "http://wiki.sk89q.com/wiki/WorldEdit",
"updateUrl": "",
"authors": [ "sk89q" ],
"authors": [ "sk89q", "wizjany", "TomyLobo" ],
"credits": "",
"logoFile": "",
"screenshots": [],
"requiredMods": [
"Forge@[9.10.1.850,)"
"Forge@[${forgeVersion},)"
],
"dependencies": [
"Forge@[9.10.1.850,)"
"Forge@[${forgeVersion},)"
],
"dependants": []
}]