Class ForgeFeature

java.lang.Object
net.neoforged.neoforgespi.locating.ForgeFeature

public class ForgeFeature extends Object
ForgeFeature is a simple test for mods for the presence of specific features such as OpenGL of a specific version or better or whatever.
ForgeFeature.registerFeature("openGLVersion", VersionFeatureTest.forVersionString(IModInfo.DependencySide.CLIENT, "3.2"));
This will be tested during early mod loading against lists of features in the mods.toml file for mods. Those that are absent or out of range will be rejected.