public abstract class FermiumRegistryAPI
extends java.lang.Object
MixinConfig| Constructor and Description |
|---|
FermiumRegistryAPI() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clear()
Internal Use; Do Not Use
|
static void |
enqueueMixin(boolean late,
java.lang.String... configurations)
Register multiple mixin config resources at once to be applied
Enqueue mixins from your IFMLLoadingPlugin class init
|
static void |
enqueueMixin(boolean late,
java.lang.String configuration)
Register a mixin config resource to be applied
Enqueue mixins from your IFMLLoadingPlugin class init
|
static void |
enqueueMixin(boolean late,
java.lang.String configuration,
boolean enabled)
Add a mixin config resource to be applied, with a toggle to apply or not
Note: I do not think this specific method is necessary, but it's here just in case
Enqueue mixins from your IFMLLoadingPlugin class init
|
static void |
enqueueMixin(boolean late,
java.lang.String configuration,
java.util.function.Supplier<java.lang.Boolean> supplier)
Add a mixin config resource to be applied, with a supplier to toggle application to be evaluated after all like-timed configs are registered
Note: If multiple suppliers are given for a single configuration, it is evaluated as OR
Enqueue mixins from your IFMLLoadingPlugin class init
|
static java.util.HashMap<java.lang.String,java.util.List<java.util.function.Supplier<java.lang.Boolean>>> |
getEarlyMixins()
Internal Use; Do Not Use
|
static java.util.HashMap<java.lang.String,java.util.List<java.util.function.Supplier<java.lang.Boolean>>> |
getLateMixins()
Internal Use; Do Not Use
|
static java.util.List<java.lang.String> |
getRejectMixins()
Internal Use; Do Not Use
|
static boolean |
isModPresent(java.lang.String modID)
Utility method to check if a mod is present similar to Loader.isModLoaded(ModID)
Typically Loader.isModLoaded(ModID) is used, however it is not populated when early mixins are applied
Use this method instead for the purposes of checking if a mixin should be applied based on if mods are present
|
static void |
removeMixin(java.lang.String configuration)
Designates a mixin config resource name to be ignored before application (Will only affect FermiumBooter applied mixins)
Note: Realistically you should not use this, but it is provided in the case of specific tweaker mod needs
Enqueue mixin removal from your IFMLLoadingPlugin class init
|
public static void enqueueMixin(boolean late,
java.lang.String... configurations)
late - - whether to apply the mixin late or earlyconfigurations - - mixin config resource namespublic static void enqueueMixin(boolean late,
java.lang.String configuration)
late - - whether to apply the mixin late or earlyconfiguration - - mixin config resource namepublic static void enqueueMixin(boolean late,
java.lang.String configuration,
boolean enabled)
late - - whether to apply the mixin late or earlyconfiguration - - mixin config resource nameenabled - - whether to apply the mixin or notpublic static void enqueueMixin(boolean late,
java.lang.String configuration,
java.util.function.Supplier<java.lang.Boolean> supplier)
late - - whether to apply the mixin late or earlyconfiguration - - mixin config resource namesupplier - - supplier to determine whether to apply the mixin or notpublic static void removeMixin(java.lang.String configuration)
configuration - - mixin config resource namepublic static boolean isModPresent(java.lang.String modID)
modID - the modID of the target mod to be checked if presentpublic static java.util.HashMap<java.lang.String,java.util.List<java.util.function.Supplier<java.lang.Boolean>>> getEarlyMixins()
public static java.util.HashMap<java.lang.String,java.util.List<java.util.function.Supplier<java.lang.Boolean>>> getLateMixins()
public static java.util.List<java.lang.String> getRejectMixins()
public static void clear()