ec562b62ea
Also changes like all packages inb4 "jared changes a package name in ModTweaker2 breaking compatability with everything" drama tweet.
28 lines
906 B
Java
28 lines
906 B
Java
package modtweaker2.mods.chisel.commands;
|
|
|
|
import java.util.List;
|
|
|
|
import minetweaker.MineTweakerAPI;
|
|
import minetweaker.MineTweakerImplementationAPI;
|
|
import minetweaker.api.player.IPlayer;
|
|
import minetweaker.api.server.ICommandFunction;
|
|
|
|
import com.cricketcraft.chisel.api.carving.CarvingUtils;
|
|
|
|
public class ChiselGroupLogger implements ICommandFunction{
|
|
|
|
@Override
|
|
public void execute(String[] arguments, IPlayer player) {
|
|
List<String> keys=CarvingUtils.getChiselRegistry().getSortedGroupNames();
|
|
System.out.println("Chisel Groups: " + keys.size());
|
|
for (String key : keys) {
|
|
System.out.println("Chisel Group " + key);
|
|
MineTweakerAPI.logCommand(key);
|
|
}
|
|
|
|
if (player != null) {
|
|
player.sendChat(MineTweakerImplementationAPI.platform.getMessage("List generated; see minetweaker.log in your minecraft dir"));
|
|
}
|
|
}
|
|
}
|