Interface GuiFrame


public interface GuiFrame
One frame of an open GUI.
  • Method Details

    • painter

      GuiPainter painter()
      Returns:
      What to draw with. Only valid during this frame.
    • mouseX

      double mouseX()
    • mouseY

      double mouseY()
    • width

      double width()
      Returns:
      GUI-scaled screen width
    • height

      double height()
      Returns:
      GUI-scaled screen height
    • deltaSeconds

      double deltaSeconds()
      Returns:
      Seconds since the previous frame, at most 0.1
    • nanoTime

      long nanoTime()
      Returns:
      System.nanoTime() at the start of this frame
    • partialTick

      float partialTick()
    • session

      GuiSession session()