Class DialogueInputEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.dialogue.event.DialogueInputEvent
- Direct Known Subclasses:
DialogueInputEvent.ClosedScreen
,DialogueInputEvent.Submitted
public abstract class DialogueInputEvent
extends net.minecraftforge.eventbus.api.Event
Event for when a player submits input to a dialogue GUI
created from
None of the events are cancelable.
DialogueFactory
.
None of the events are cancelable.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Called when the player closes the screen using the escape button.static class
Called when the player interacts with any of the buttons of the dialogue GUI.Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
ModifierConstructorDescriptionprotected
DialogueInputEvent
(net.minecraft.server.level.ServerPlayer player) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
DialogueInputEvent
protected DialogueInputEvent(net.minecraft.server.level.ServerPlayer player)
-
-
Method Details
-
getPlayer
public net.minecraft.server.level.ServerPlayer getPlayer()
-