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
public static class RenderGameOverlayEvent.BossInfo extends RenderGameOverlayEvent.Pre
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.client.event.RenderGameOverlayEvent
RenderGameOverlayEvent.BossInfo, RenderGameOverlayEvent.Chat, RenderGameOverlayEvent.ElementType, RenderGameOverlayEvent.Post, RenderGameOverlayEvent.Pre, RenderGameOverlayEvent.Text
-
-
Field Summary
Fields Modifier and Type Field Description private ClientBossInfo
bossInfo
private int
increment
private int
x
private int
y
-
Constructor Summary
Constructors Constructor Description BossInfo(MatrixStack mStack, RenderGameOverlayEvent parent, RenderGameOverlayEvent.ElementType type, ClientBossInfo bossInfo, int x, int y, int increment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientBossInfo
getBossInfo()
int
getIncrement()
int
getX()
int
getY()
void
setIncrement(int increment)
Sets the amount to move down before rendering the next bar-
Methods inherited from class net.minecraftforge.client.event.RenderGameOverlayEvent
getMatrixStack, getPartialTicks, getType, getWindow
-
-
-
-
Field Detail
-
bossInfo
private final ClientBossInfo bossInfo
-
x
private final int x
-
y
private final int y
-
increment
private int increment
-
-
Constructor Detail
-
BossInfo
public BossInfo(MatrixStack mStack, RenderGameOverlayEvent parent, RenderGameOverlayEvent.ElementType type, ClientBossInfo bossInfo, int x, int y, int increment)
-
-
Method Detail
-
getBossInfo
public ClientBossInfo getBossInfo()
- Returns:
- The
BossInfoClient
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
-
-