add: Command to log TConstruct Modifiers, fix: #238

This commit is contained in:
Tobias Wohlfarth committed 2015-11-23 21:18:06 +01:00
1 parent 4e92eddfd3
commit 8313b5c470
3 files changed
+32 -23

No files matched your search

@@ -0,0 +1,22 @@
package modtweaker2.mods.tconstruct.commands;
import minetweaker.MineTweakerAPI;
import minetweaker.api.player.IPlayer;
import minetweaker.api.server.ICommandFunction;
import tconstruct.library.TConstructRegistry;
import tconstruct.library.tools.ToolMaterial;
import java.util.Map;
import static modtweaker2.helpers.LogHelper.logPrinted;
public class MaterialLogger implements ICommandFunction {
@Override
public void execute(String[] arguments, IPlayer player) {
MineTweakerAPI.logCommand(TConstructRegistry.toolMaterialStrings.entrySet().size() + " Materials:");
for (Map.Entry<String, ToolMaterial> entry : TConstructRegistry.toolMaterialStrings.entrySet()) {
MineTweakerAPI.logCommand(entry.getKey());
}
logPrinted(player);
}
}