Class ChatComponent.DrawingFocusedGraphicsAccess
java.lang.Object
net.minecraft.client.gui.components.ChatComponent.DrawingFocusedGraphicsAccess
- All Implemented Interfaces:
Consumer<Style>, ChatComponent.ChatGraphicsAccess
- Enclosing class:
ChatComponent
private static class ChatComponent.DrawingFocusedGraphicsAccess
extends Object
implements ChatComponent.ChatGraphicsAccess, Consumer<Style>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final Fontprivate final intprivate final intprivate final GuiGraphicsprivate @Nullable Styleprivate final Vector2fprivate ActiveTextCollector.Parametersprivate final ActiveTextCollector -
Constructor Summary
ConstructorsConstructorDescriptionDrawingFocusedGraphicsAccess(GuiGraphics graphics, Font font, int mouseX, int mouseY, boolean changeCursorOnInsertions) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidfill(int x0, int y0, int x1, int y1, int color) booleanhandleMessage(int textTop, float opacity, FormattedCharSequence message) voidhandleTag(int x0, int y0, int x1, int y1, float opacity, GuiMessageTag tag) voidhandleTagIcon(int left, int bottom, boolean forceVisible, GuiMessageTag tag, GuiMessageTag.Icon icon) private booleanisMouseOver(int left, int top, int right, int bottom) private voidshowTooltip(GuiMessageTag tag) private voidvoidupdatePose(Consumer<Matrix3x2f> updater)
-
Field Details
-
graphics
-
font
-
textRenderer
-
parameters
-
globalMouseX
private final int globalMouseX -
globalMouseY
private final int globalMouseY -
localMousePos
-
hoveredStyle
-
changeCursorOnInsertions
private final boolean changeCursorOnInsertions
-
-
Constructor Details
-
DrawingFocusedGraphicsAccess
public DrawingFocusedGraphicsAccess(GuiGraphics graphics, Font font, int mouseX, int mouseY, boolean changeCursorOnInsertions)
-
-
Method Details
-
updateLocalMousePos
private void updateLocalMousePos() -
updatePose
- Specified by:
updatePosein interfaceChatComponent.ChatGraphicsAccess
-
fill
public void fill(int x0, int y0, int x1, int y1, int color) - Specified by:
fillin interfaceChatComponent.ChatGraphicsAccess
-
accept
-
handleMessage
- Specified by:
handleMessagein interfaceChatComponent.ChatGraphicsAccess
-
isMouseOver
private boolean isMouseOver(int left, int top, int right, int bottom) -
handleTag
- Specified by:
handleTagin interfaceChatComponent.ChatGraphicsAccess
-
handleTagIcon
public void handleTagIcon(int left, int bottom, boolean forceVisible, GuiMessageTag tag, GuiMessageTag.Icon icon) - Specified by:
handleTagIconin interfaceChatComponent.ChatGraphicsAccess
-
showTooltip
-