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 DialogueFactory.
None of the events are cancelable.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static 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

    Constructors
    Modifier
    Constructor
    Description
    protected
    DialogueInputEvent(net.minecraft.server.level.ServerPlayer player)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.server.level.ServerPlayer
     

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DialogueInputEvent

      protected DialogueInputEvent(net.minecraft.server.level.ServerPlayer player)
  • Method Details

    • getPlayer

      public net.minecraft.server.level.ServerPlayer getPlayer()