Package net.neoforged.neoforge.client
Class PresetEditorManager
java.lang.Object
net.neoforged.neoforge.client.PresetEditorManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable net.minecraft.client.gui.screens.worldselection.PresetEditor
get
(net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.presets.WorldPreset> key) Returns the PresetEditor for the given WorldPreset key, or null if no such PresetEditor exists.(package private) static void
init()
-
Field Details
-
editors
private static Map<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.presets.WorldPreset>,net.minecraft.client.gui.screens.worldselection.PresetEditor> editors
-
-
Constructor Details
-
PresetEditorManager
private PresetEditorManager()
-
-
Method Details
-
init
@Internal static void init() -
get
@Nullable public static @Nullable net.minecraft.client.gui.screens.worldselection.PresetEditor get(net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.presets.WorldPreset> key) Returns the PresetEditor for the given WorldPreset key, or null if no such PresetEditor exists.- Parameters:
key
- ResourceKey for the specified WorldPreset/PresetEditor.- Returns:
- the PresetEditor for the given WorldPreset key, or null if no such PresetEditor exists
-