Interface IConfigScreenFactory
- All Superinterfaces:
net.neoforged.fml.IExtensionPoint
public interface IConfigScreenFactory
extends net.neoforged.fml.IExtensionPoint
Register an instance to
ModContainer.registerExtensionPoint(Class, Supplier)
to supply a config screen for your mod.
The config screen will be accessible from the mod list menu.
-
Method Summary
Modifier and TypeMethodDescriptioncreateScreen
(Minecraft minecraft, Screen modListScreen) Creates a new config screen.static Optional
<IConfigScreenFactory> getForMod
(net.neoforged.neoforgespi.language.IModInfo selectedMod)
-
Method Details
-
createScreen
Creates a new config screen. ThemodListScreen
parameter can be used for a "back" button. -
getForMod
static Optional<IConfigScreenFactory> getForMod(net.neoforged.neoforgespi.language.IModInfo selectedMod)
-