类 ContainerScreenEvent.Render

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ContainerScreenEvent
net.minecraftforge.client.event.ContainerScreenEvent.Render
直接已知子类:
ContainerScreenEvent.Render.Background, ContainerScreenEvent.Render.Foreground
封闭类:
ContainerScreenEvent

public abstract static class ContainerScreenEvent.Render extends ContainerScreenEvent
Fired every time an AbstractContainerScreen renders. See the two subclasses to listen for foreground or background rendering.

These events are fired on the main Forge event bus, only on the logical client.

另请参阅:
  • 字段详细资料

    • guiGraphics

      private final GuiGraphics guiGraphics
    • mouseX

      private final int mouseX
    • mouseY

      private final int mouseY
  • 构造器详细资料

  • 方法详细资料

    • getGuiGraphics

      public GuiGraphics getGuiGraphics()
      返回 the gui graphics used for rendering。
      返回:
      the gui graphics used for rendering
    • getMouseX

      public int getMouseX()
      返回 the X coordinate of the mouse pointer。
      返回:
      the X coordinate of the mouse pointer
    • getMouseY

      public int getMouseY()
      返回 the Y coordinate of the mouse pointer。
      返回:
      the Y coordinate of the mouse pointer