Various Small Changes #142

Merged
SenseiKiwi merged 9 commits from master into master 2014-03-08 02:53:14 +00:00
Showing only changes of commit baa5555547 - Show all commits

View File

@@ -1,6 +1,7 @@
package StevenDimDoors.mod_pocketDim.commands;
import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommand;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ChatMessageComponent;
@@ -89,4 +90,19 @@ public abstract class DDCommandBase extends CommandBase
cmp.addText(message);
player.sendChatToPlayer(cmp);
}
/*
* The following two compareTo() methods are copied from CommandBase because it seems
* that Dryware and Technic Jenkins don't have those functions defined. How in the world?
* I have no idea. But it's breaking our builds. -_- ~SenseiKiwi
*/
public int compareTo(ICommand par1ICommand)
{
return this.getCommandName().compareTo(par1ICommand.getCommandName());
}
public int compareTo(Object par1Obj)
{
return this.compareTo((ICommand)par1Obj);
}
}