mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-18 03:35:03 +00:00
30 lines
988 B
Java
30 lines
988 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 BotaniaOrechidLogger implements ICommandFunction {
|
|
|
|
@Override
|
|
public void execute(String[] arguments, IPlayer player) {
|
|
|
|
Set<String> keys = BotaniaAPI.oreWeights.keySet();
|
|
System.out.println("Orechid Keys: " + keys.size());
|
|
for (String str : BotaniaAPI.oreWeights.keySet()) {
|
|
System.out.println("Orechid Key: " + str);
|
|
MineTweakerAPI.logCommand(str + ": " + BotaniaAPI.oreWeights.get(str) + "\n");
|
|
}
|
|
|
|
if (player != null) {
|
|
player.sendChat(
|
|
MineTweakerImplementationAPI.platform
|
|
.getMessage("List generated; see minetweaker.log in your logs dir"));
|
|
}
|
|
}
|
|
}
|