Klasse AFLFeature
java.lang.Object
de.florianmichael.asmfabricloader.loader.AFLFeature
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic voidapplyForMods(Collection<net.fabricmc.loader.api.ModContainer> modContainers, String name, BiConsumer<net.fabricmc.loader.api.ModContainer, net.fabricmc.loader.api.metadata.CustomValue> impl) Applies the given function to all mods that have the given featurestatic net.fabricmc.loader.api.metadata.CustomValuegetAflFeature(net.fabricmc.loader.api.ModContainer modContainer, String name) Checks if the mod has the afl: namespace or the afl:environment: namespace (e.g. afl:client: or afl:server:) and returns the feature if it exists or null if it doesn't exist or the environment doesn't match
-
Konstruktordetails
-
AFLFeature
public AFLFeature()
-
-
Methodendetails
-
applyForMods
public static void applyForMods(Collection<net.fabricmc.loader.api.ModContainer> modContainers, String name, BiConsumer<net.fabricmc.loader.api.ModContainer, net.fabricmc.loader.api.metadata.CustomValue> impl) Applies the given function to all mods that have the given feature- Parameter:
modContainers- The modsname- The name of the featureimpl- The function to apply
-
getAflFeature
public static net.fabricmc.loader.api.metadata.CustomValue getAflFeature(net.fabricmc.loader.api.ModContainer modContainer, String name) Checks if the mod has the afl: namespace or the afl:environment: namespace (e.g. afl:client: or afl:server:) and returns the feature if it exists or null if it doesn't exist or the environment doesn't match- Parameter:
modContainer- The mod containername- The name of the feature- Gibt zurück:
- True if the mod has the feature
-