use of net.minecraftforge.server.command.CommandTreeBase in project Realistic-Terrain-Generation by Team-RTG.
the class RTGCommandTree method getUsage.
@Override
public String getUsage(ICommandSender sender) {
final ITextComponent ret = new TextComponentString("");
getSubCommands().forEach(cmd -> {
if (cmd instanceof CommandTreeBase) {
((CommandTreeBase) cmd).getSubCommands().forEach(rcmd -> ret.appendText("\n").appendText(rcmd.getUsage(sender)));
} else {
ret.appendText("\n").appendText(cmd.getUsage(sender));
}
});
return ret.getFormattedText();
}
Aggregations