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.Pre, 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 ClientBossInfo
private int
private final int
private final int
-
Constructor Summary
ConstructorDescriptionBossInfo
(MatrixStack mStack, RenderGameOverlayEvent parent, RenderGameOverlayEvent.ElementType type, ClientBossInfo bossInfo, 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
-
bossInfo
-
x
private final int x -
y
private final int y -
increment
private int increment
-
-
Constructor Details
-
BossInfo
public BossInfo(MatrixStack mStack, RenderGameOverlayEvent parent, RenderGameOverlayEvent.ElementType type, ClientBossInfo bossInfo, int x, int y, int increment)
-
-
Method Details
-
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
-