Package net.minecraftforge.client.event
Class RenderGameOverlayEvent.BossInfo
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RenderGameOverlayEvent
net.minecraftforge.client.event.RenderGameOverlayEvent.Pre
net.minecraftforge.client.event.RenderGameOverlayEvent.BossInfo
- Enclosing class:
- RenderGameOverlayEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.event.RenderGameOverlayEvent
RenderGameOverlayEvent.BossInfo, RenderGameOverlayEvent.Chat, RenderGameOverlayEvent.ElementType, RenderGameOverlayEvent.Post, RenderGameOverlayEvent.PostLayer, RenderGameOverlayEvent.Pre, RenderGameOverlayEvent.PreLayer, RenderGameOverlayEvent.Text
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate final LerpingBossEvent
private int
private final int
private final int
-
Constructor Summary
ConstructorDescriptionBossInfo
(PoseStack mStack, RenderGameOverlayEvent parent, RenderGameOverlayEvent.ElementType type, LerpingBossEvent bossEvent, int x, int y, int increment) -
Method Summary
Modifier and TypeMethodDescriptionint
int
getX()
int
getY()
void
setIncrement
(int increment) Sets the amount to move down before rendering the next barMethods inherited from class net.minecraftforge.client.event.RenderGameOverlayEvent
getMatrixStack, getPartialTicks, getType, getWindow
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
bossEvent
-
x
private final int x -
y
private final int y -
increment
private int increment
-
-
Constructor Details
-
BossInfo
public BossInfo(PoseStack mStack, RenderGameOverlayEvent parent, RenderGameOverlayEvent.ElementType type, LerpingBossEvent bossEvent, int x, int y, int increment)
-
-
Method Details
-
getBossEvent
- Returns:
- The
LerpingBossEvent
currently being rendered
-
getX
public int getX()- Returns:
- The current x position we are rendering at
-
getY
public int getY()- Returns:
- The current y position we are rendering at
-
getIncrement
public int getIncrement()- Returns:
- How much to move down before rendering the next bar
-
setIncrement
public void setIncrement(int increment) Sets the amount to move down before rendering the next bar- Parameters:
increment
- The increment to set
-