Package net.minecraftforge.client.event
Class RegisterPresetEditorsEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RegisterPresetEditorsEvent
- All Implemented Interfaces:
IModBusEvent
public class RegisterPresetEditorsEvent
extends net.minecraftforge.eventbus.api.Event
implements IModBusEvent
Event for registering PresetEditor
screen factories for world presets.
This event is not cancellable, and does not have a result.
This event is fired on the mod-specific event bus, only on the logical client.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map
<ResourceKey<WorldPreset>, PresetEditor> private static final org.apache.logging.log4j.Logger
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
register
(ResourceKey<WorldPreset> key, PresetEditor editor) Registers a PresetEditor for a given world preset key.Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
editors
-
-
Constructor Details
-
RegisterPresetEditorsEvent
-
-
Method Details
-
register
Registers a PresetEditor for a given world preset key.
-