类 CustomizeGuiOverlayEvent.BossEventProgress

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.CustomizeGuiOverlayEvent
net.minecraftforge.client.event.CustomizeGuiOverlayEvent.BossEventProgress
封闭类:
CustomizeGuiOverlayEvent

public static class CustomizeGuiOverlayEvent.BossEventProgress extends CustomizeGuiOverlayEvent
Fired before a boss health bar is rendered to the screen.

This event is cancellable, and does not have a result. Cancelling this event will prevent the given bar from rendering.

This event is fired on the main Forge event bus, only on the logical client.

  • 字段详细资料

    • bossEvent

      private final LerpingBossEvent bossEvent
    • x

      private final int x
    • y

      private final int y
    • increment

      private int increment
  • 构造器详细资料

    • BossEventProgress

      @Internal public BossEventProgress(Window window, GuiGraphics guiGraphics, float partialTick, LerpingBossEvent bossEvent, int x, int y, int increment)
  • 方法详细资料

    • getBossEvent

      public LerpingBossEvent getBossEvent()
      返回:
      the boss health bar currently being rendered
    • getX

      public int getX()
      返回 the X position of the boss health bar。
      返回:
      the X position of the boss health bar
    • getY

      public int getY()
      返回 the Y position of the boss health bar。
      返回:
      the Y position of the boss health bar
    • getIncrement

      public int getIncrement()
      返回 the Y position increment before rendering the next boss health bar。
      返回:
      the Y position increment before rendering the next boss health bar
    • setIncrement

      public void setIncrement(int increment)
      Sets the Y position increment before rendering the next boss health bar.
      参数:
      increment - the new Y position increment