Class PresetEditorManager

java.lang.Object
net.neoforged.neoforge.client.PresetEditorManager

public final class PresetEditorManager extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static Map<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.presets.WorldPreset>,net.minecraft.client.gui.screens.worldselection.PresetEditor>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    (package private) static void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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