Package net.minecraftforge.client.event
Class CustomizeGuiOverlayEvent.BossEventProgress
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.CustomizeGuiOverlayEvent
net.minecraftforge.client.event.CustomizeGuiOverlayEvent.BossEventProgress
- Enclosing class:
- 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.
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.client.event.CustomizeGuiOverlayEventCustomizeGuiOverlayEvent.BossEventProgress, CustomizeGuiOverlayEvent.Chat, CustomizeGuiOverlayEvent.DebugTextNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final LerpingBossEventprivate intprivate final intprivate final int
- 
Constructor SummaryConstructorsConstructorDescriptionBossEventProgress(Window window, GuiGraphics guiGraphics, float partialTick, LerpingBossEvent bossEvent, int x, int y, int increment) 
- 
Method SummaryModifier 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.minecraftforge.client.event.CustomizeGuiOverlayEventgetGuiGraphics, getPartialTick, getWindowMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
bossEvent
- 
xprivate final int x
- 
yprivate final int y
- 
incrementprivate 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
 
- 
getXpublic int getX()Returns the X position of the boss health bar.- Returns:
- the X position of the boss health bar
 
- 
getYpublic int getY()Returns the Y position of the boss health bar.- Returns:
- the Y position of the boss health bar
 
- 
getIncrementpublic 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
 
- 
setIncrementpublic void setIncrement(int increment) Sets the Y position increment before rendering the next boss health bar.- Parameters:
- increment- the new Y position increment
 
 
-