Class EventHandler

java.lang.Object
github.jaffe2718.mccs.event.EventHandler

public abstract class EventHandler extends Object
This class is used to handle Minecraft game events.
It is used to handle the key event and the game message event.
It is used to show the UI and hide the UI.
It is used to get the command from the chat screen.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static String
    The last command that the player input in the chat screen.
    static net.minecraft.client.gui.screen.ChatInputSuggestor
    The suggestor of the chat screen.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    register the event handler

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • lastCommand

      public static String lastCommand
      The last command that the player input in the chat screen.
    • suggestor

      public static net.minecraft.client.gui.screen.ChatInputSuggestor suggestor
      The suggestor of the chat screen.
  • Constructor Details

    • EventHandler

      public EventHandler()
  • Method Details

    • register

      public static void register()
      register the event handler