类 CustomizeGuiOverlayEvent.BossEventProgress
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.CustomizeGuiOverlayEvent
net.minecraftforge.client.event.CustomizeGuiOverlayEvent.BossEventProgress
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.
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.client.event.CustomizeGuiOverlayEvent
CustomizeGuiOverlayEvent.BossEventProgress, CustomizeGuiOverlayEvent.Chat, CustomizeGuiOverlayEvent.DebugText
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器构造器说明BossEventProgress
(Window window, GuiGraphics guiGraphics, float partialTick, LerpingBossEvent bossEvent, int x, int y, int increment) -
方法概要
修饰符和类型方法说明int
返回 the Y position increment before rendering the next boss health bar。int
getX()
返回 the X position of the boss health bar。int
getY()
返回 the Y position of the boss health bar。void
setIncrement
(int increment) Sets the Y position increment before rendering the next boss health bar.从类继承的方法 net.minecraftforge.client.event.CustomizeGuiOverlayEvent
getGuiGraphics, getPartialTick, getWindow
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
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
- 返回:
- 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
-