ec562b62ea
Also changes like all packages inb4 "jared changes a package name in ModTweaker2 breaking compatability with everything" drama tweet.
27 lines
857 B
Java
27 lines
857 B
Java
package modtweaker2.mods.botania.commands;
|
|
|
|
import java.util.Set;
|
|
|
|
import minetweaker.MineTweakerAPI;
|
|
import minetweaker.MineTweakerImplementationAPI;
|
|
import minetweaker.api.player.IPlayer;
|
|
import minetweaker.api.server.ICommandFunction;
|
|
import vazkii.botania.api.BotaniaAPI;
|
|
|
|
public class BotaniaBrewLogger implements ICommandFunction{
|
|
|
|
@Override
|
|
public void execute(String[] arguments, IPlayer player) {
|
|
Set<String> brew_keys=BotaniaAPI.brewMap.keySet();
|
|
System.out.println("Brews: " + brew_keys.size());
|
|
for (String key : brew_keys) {
|
|
System.out.println("Brew " + key);
|
|
MineTweakerAPI.logCommand(key);
|
|
}
|
|
|
|
if (player != null) {
|
|
player.sendChat(MineTweakerImplementationAPI.platform.getMessage("List generated; see minetweaker.log in your minecraft dir"));
|
|
}
|
|
}
|
|
}
|