Class DateTimeDisplayEntrypoint

java.lang.Object
io.github.zhengzhengyiyi.addon.DateTimeDisplayEntrypoint
All Implemented Interfaces:
ApiEntrypoint

public class DateTimeDisplayEntrypoint extends Object implements ApiEntrypoint
  • Constructor Details

    • DateTimeDisplayEntrypoint

      public DateTimeDisplayEntrypoint()
  • Method Details

    • init

      public void init()
      Description copied from interface: ApiEntrypoint
      Initializes the API entry point. This method is called by the config editor mod during its initialization phase. It is the only required method to be implemented.
      Specified by:
      init in interface ApiEntrypoint
    • onEditerOpen

      public void onEditerOpen(EditorScreen editor)
      Description copied from interface: ApiEntrypoint
      Called when the editor screen is opened.
      Specified by:
      onEditerOpen in interface ApiEntrypoint
      Parameters:
      editor - The instance of the EditorScreen.
    • onEditerClose

      public void onEditerClose(EditorScreen editor)
      Description copied from interface: ApiEntrypoint
      Called when the editor screen is closed.
      Specified by:
      onEditerClose in interface ApiEntrypoint
      Parameters:
      editor - The instance of the EditorScreen.
    • onMouseDown

      public ActionResult onMouseDown(int x, int y)
      Description copied from interface: ApiEntrypoint
      Called when a mouse button is pressed on the screen.
      Specified by:
      onMouseDown in interface ApiEntrypoint
      Parameters:
      x - The x-coordinate of the mouse cursor.
      y - The y-coordinate of the mouse cursor.
    • onMouseScroll

      public void onMouseScroll()
      Description copied from interface: ApiEntrypoint
      Called when the mouse scroll wheel is used.
      Specified by:
      onMouseScroll in interface ApiEntrypoint
    • onType

      public ActionResult onType(int keyCode, int scanCode, int modifiers)
      Description copied from interface: ApiEntrypoint
      Called when a key is typed on the keyboard.
      Specified by:
      onType in interface ApiEntrypoint
      Parameters:
      keyCode - The key code of the typed key.
      scanCode - The scan code of the typed key.
      modifiers - The keyboard modifiers pressed at the time of typing.
    • onCharTyped

      public ActionResult onCharTyped(char chr, int modifiers)
      Specified by:
      onCharTyped in interface ApiEntrypoint
    • renderButton

      public void renderButton(DrawContext context, int mouseX, int mouseY, float delta)
      Description copied from interface: ApiEntrypoint
      Called to render custom buttons or elements on the screen.
      Specified by:
      renderButton in interface ApiEntrypoint
      Parameters:
      context - The draw context used for rendering.
      mouseX - The x-coordinate of the mouse cursor.
      mouseY - The y-coordinate of the mouse cursor.
      delta - The partial ticks for smooth rendering.
    • setEnabled

      public void setEnabled(boolean enabled)