mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-25 14:44:32 +00:00
BracketHandler for thaumcraft aspects
This commit is contained in:
1 parent
db9b0e3c11
commit
99bd8eaa1e
10 files changed
+420
-18
No files matched your search
@@ -1,7 +1,5 @@
|
||||
package modtweaker2.mods.thaumcraft.commands;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import minetweaker.MineTweakerAPI;
|
||||
import minetweaker.MineTweakerImplementationAPI;
|
||||
import minetweaker.api.player.IPlayer;
|
||||
@@ -12,21 +10,15 @@ public class AspectLogger implements ICommandFunction{
|
||||
|
||||
@Override
|
||||
public void execute(String[] arguments, IPlayer player) {
|
||||
ArrayList<Aspect> aspects = new ArrayList<Aspect>();
|
||||
aspects.addAll(Aspect.getPrimalAspects());
|
||||
aspects.addAll(Aspect.getCompoundAspects());
|
||||
System.out.println("Aspects: " + aspects.size());
|
||||
for (Aspect set : aspects) {
|
||||
if (!set.isPrimal()) {
|
||||
System.out.println("Aspect:[ AspectName: " + set.getName() + ", description" + set.getLocalizedDescription() + ", Components:[" + set.getComponents()[0].getName() + ", " + set.getComponents()[1].getName() + "]\n");
|
||||
MineTweakerAPI.logCommand("Aspect:[ AspectName: " + set.getName() + ", description" + set.getLocalizedDescription() + ", Components:[" + set.getComponents()[0].getName() + ", " + set.getComponents()[1].getName() + "]\n");
|
||||
} else {
|
||||
System.out.println("Aspect:[ AspectName: " + set.getName() + ", description" + set.getLocalizedDescription() + ", ]\n");
|
||||
MineTweakerAPI.logCommand("Aspect:[ AspectName: " + set.getName() + ", description" + set.getLocalizedDescription() + ", ]\n");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
for(Aspect aspect : Aspect.getPrimalAspects()) {
|
||||
MineTweakerAPI.logCommand("<aspect:" + aspect.getName() + "> // " + aspect.getLocalizedDescription());
|
||||
}
|
||||
|
||||
for(Aspect aspect : Aspect.getCompoundAspects()) {
|
||||
MineTweakerAPI.logCommand("<aspect:" + aspect.getName() + "> // " + aspect.getLocalizedDescription() + " [<aspect:" + aspect.getComponents()[0].getName() + ">, <aspect:" + aspect.getComponents()[1].getName() + ">]");
|
||||
}
|
||||
|
||||
if (player != null) {
|
||||
player.sendChat(MineTweakerImplementationAPI.platform.getMessage("List generated; see minetweaker.log in your minecraft dir"));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user