Also changes like all packages inb4 "jared changes a package name in ModTweaker2 breaking compatability with everything" drama tweet.
28 lines
1,011 B
Java
28 lines
1,011 B
Java
package modtweaker2.mods.botania.lexicon.commands;
|
|
|
|
import java.util.List;
|
|
|
|
import minetweaker.MineTweakerAPI;
|
|
import minetweaker.MineTweakerImplementationAPI;
|
|
import minetweaker.api.player.IPlayer;
|
|
import minetweaker.api.server.ICommandFunction;
|
|
import vazkii.botania.api.BotaniaAPI;
|
|
import vazkii.botania.api.lexicon.LexiconCategory;
|
|
|
|
public class LexiconCategoryLogger implements ICommandFunction{
|
|
|
|
@Override
|
|
public void execute(String[] arguments, IPlayer player) {
|
|
List<LexiconCategory> categories=BotaniaAPI.getAllCategories();
|
|
System.out.println("Categories: " + categories.size());
|
|
for (LexiconCategory category : categories) {
|
|
System.out.println("Category " + category.getUnlocalizedName());
|
|
MineTweakerAPI.logCommand(category.getUnlocalizedName());
|
|
}
|
|
|
|
if (player != null) {
|
|
player.sendChat(MineTweakerImplementationAPI.platform.getMessage("List generated; see minetweaker.log in your minecraft dir"));
|
|
}
|
|
}
|
|
}
|