Package net.minecraftforge.client.event
Class CustomizeGuiOverlayEvent.Chat
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.CustomizeGuiOverlayEvent
net.minecraftforge.client.event.CustomizeGuiOverlayEvent.Chat
- Enclosing class:
CustomizeGuiOverlayEvent
Fired before the chat messages overlay is rendered to the screen.
This event is not cancellable, and does not have a result.
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.minecraftforge.client.event.CustomizeGuiOverlayEvent
CustomizeGuiOverlayEvent.BossEventProgress, CustomizeGuiOverlayEvent.Chat, CustomizeGuiOverlayEvent.DebugText
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
-
Constructor Summary
ConstructorDescriptionChat
(Window window, GuiGraphics guiGraphics, float partialTick, int posX, int posY) -
Method Summary
Methods inherited from class net.minecraftforge.client.event.CustomizeGuiOverlayEvent
getGuiGraphics, getPartialTick, getWindow
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
posX
private int posX -
posY
private int posY
-
-
Constructor Details
-
Chat
@Internal public Chat(Window window, GuiGraphics guiGraphics, float partialTick, int posX, int posY)
-
-
Method Details
-
getPosX
public int getPosX()- Returns:
- the X position of the chat messages overlay
-
setPosX
public void setPosX(int posX) Sets the new X position for rendering the chat messages overlay- Parameters:
posX
- the new X position
-
getPosY
public int getPosY()- Returns:
- the Y position of the chat messages overlay
-
setPosY
public void setPosY(int posY) Sets the new Y position for rendering the chat messages overlay- Parameters:
posY
- the new y position
-