Interface ModLoadEvaluator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Platform-agnostic service abstraction for querying whether a specific mod is loaded in the active
runtime environment.
Used primarily by ConfigReference.resolve() to evaluate conditional "try_config" and
"else_config" configuration targets across Fabric, Forge, and NeoForge.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classGlobal service provider holding the platform-specificModLoadEvaluatorimplementation. -
Method Summary
-
Method Details
-
isLoaded
Checks whether a mod with the specified identifier is currently loaded.- Parameters:
modId- The namespace/identifier of the mod to query.- Returns:
trueif the mod is loaded in the current environment,falseotherwise.
-