Allow mods to add to logic effect map (#9507)

* Allow mods to add to logic effect map

* Switch to being only a single add.
This commit is contained in:
MEEPofFaith
2024-02-01 16:04:51 -08:00
committed by GitHub
parent ab13a76ebb
commit e1a5484074

View File

@@ -57,6 +57,12 @@ public class LogicFx{
return map.get(name);
}
/** Adds an effect entry to the map. */
public static void add(String name, EffectEntry entry){
entry.name = name;
map.put(name, entry);
}
public static String[] all(){
return map.orderedKeys().toArray(String.class);
}