mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-23 21:59:48 +00:00
Added more commands, updated botania to the (not yet released) api version we need, improved error logging, added lexicon recipe mapping functions, added more sanity checks.
This commit is contained in:
1 parent
df85abd8c4
commit
e97761fe30
8 files changed
+241
No files matched your search
@@ -0,0 +1,30 @@
|
||||
package modtweaker.commands;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import net.minecraft.entity.EntityList;
|
||||
import vazkii.botania.api.BotaniaAPI;
|
||||
import vazkii.botania.api.lexicon.LexiconCategory;
|
||||
import minetweaker.MineTweakerAPI;
|
||||
import minetweaker.MineTweakerImplementationAPI;
|
||||
import minetweaker.api.player.IPlayer;
|
||||
import minetweaker.api.server.ICommandFunction;
|
||||
|
||||
public class MobMappingLogger implements ICommandFunction{
|
||||
|
||||
@Override
|
||||
public void execute(String[] arguments, IPlayer player) {
|
||||
Set<String> keys=EntityList.stringToClassMapping.keySet();
|
||||
System.out.println("Mob Keys: " + keys.size());
|
||||
for (String key : keys) {
|
||||
System.out.println("Mob Key " + key);
|
||||
MineTweakerAPI.logCommand(key);
|
||||
}
|
||||
|
||||
if (player != null) {
|
||||
player.sendChat(MineTweakerImplementationAPI.platform.getMessage("List generated; see minetweaker.log in your minecraft dir"));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user