33 lines
945 B
Java
33 lines
945 B
Java
package modtweaker2.commands;
|
|
|
|
import minetweaker.MineTweakerAPI;
|
|
import minetweaker.MineTweakerImplementationAPI;
|
|
import minetweaker.api.player.IPlayer;
|
|
import minetweaker.api.server.ICommandFunction;
|
|
import modtweaker2.ModTweaker2;
|
|
import net.minecraft.entity.EntityList;
|
|
|
|
import java.util.Set;
|
|
|
|
public class EntityMappingLogger implements ICommandFunction {
|
|
|
|
@Override
|
|
public void execute(String[] arguments, IPlayer player) {
|
|
|
|
@SuppressWarnings("unchecked")
|
|
Set<String> keys = EntityList.NAME_TO_CLASS.keySet();
|
|
|
|
System.out.println("Mob Keys: " + keys.size());
|
|
|
|
for (String key : keys) {
|
|
ModTweaker2.logger.info("Mob Key " + key);
|
|
MineTweakerAPI.logCommand("Mob Key " + key);
|
|
|
|
}
|
|
|
|
if (player != null) {
|
|
player.sendChat(MineTweakerImplementationAPI.platform.getMessage("List generated; see minetweaker.log in your minecraft dir"));
|
|
}
|
|
}
|
|
}
|