Class CustomizeGuiOverlayEvent.BossEventProgress
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.CustomizeGuiOverlayEvent
net.neoforged.neoforge.client.event.CustomizeGuiOverlayEvent.BossEventProgress
- All Implemented Interfaces:
 net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
 - CustomizeGuiOverlayEvent
 
public static class CustomizeGuiOverlayEvent.BossEventProgress
extends CustomizeGuiOverlayEvent
implements net.neoforged.bus.api.ICancellableEvent
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.
- 
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.client.event.CustomizeGuiOverlayEvent
CustomizeGuiOverlayEvent.BossEventProgress, CustomizeGuiOverlayEvent.Chat, CustomizeGuiOverlayEvent.DebugTextNested classes/interfaces inherited from class net.neoforged.bus.api.Event
net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.api.Event.Result - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LerpingBossEventprivate intprivate final intprivate final int - 
Constructor Summary
ConstructorsConstructorDescriptionBossEventProgress(Window window, GuiGraphics guiGraphics, float partialTick, LerpingBossEvent bossEvent, int x, int y, int increment)  - 
Method Summary
Modifier and TypeMethodDescriptionintReturns the Y position increment before rendering the next boss health bar.intgetX()Returns the X position of the boss health bar.intgetY()Returns the Y position of the boss health bar.voidsetIncrement(int increment) Sets the Y position increment before rendering the next boss health bar.Methods inherited from class net.neoforged.neoforge.client.event.CustomizeGuiOverlayEvent
getGuiGraphics, getPartialTick, getWindowMethods inherited from class net.neoforged.bus.api.Event
getResult, hasResult, setResultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled 
- 
Field Details
- 
bossEvent
 - 
x
private final int x - 
y
private final int y - 
increment
private int increment 
 - 
 - 
Constructor Details
- 
BossEventProgress
@Internal public BossEventProgress(Window window, GuiGraphics guiGraphics, float partialTick, LerpingBossEvent bossEvent, int x, int y, int increment)  
 - 
 - 
Method Details
- 
getBossEvent
- Returns:
 - the boss health bar currently being rendered
 
 - 
getX
public int getX()Returns the X position of the boss health bar.- Returns:
 - the X position of the boss health bar
 
 - 
getY
public int getY()Returns the Y position of the boss health bar.- Returns:
 - the Y position of the boss health bar
 
 - 
getIncrement
public int getIncrement()Returns the Y position increment before rendering the next boss health bar.- Returns:
 - 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.- Parameters:
 increment- the new Y position increment
 
 -