Package net.minecraft.client.gui
Class Font.StringRenderOutput
java.lang.Object
net.minecraft.client.gui.Font.StringRenderOutput
- All Implemented Interfaces:
FormattedCharSink
- Enclosing class:
Font
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final float
private final float
(package private) final MultiBufferSource
private final float
private final boolean
private List
<BakedGlyph.Effect> private final float
private final Font.DisplayMode
private final int
private final org.joml.Matrix4f
private final float
(package private) float
(package private) float
-
Constructor Summary
ConstructorsConstructorDescriptionStringRenderOutput
(MultiBufferSource p_181365_, float p_181366_, float p_181367_, int p_181368_, boolean p_181369_, org.joml.Matrix4f p_254510_, Font.DisplayMode p_181371_, int p_181372_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Accepts a single code point from aFormattedCharSequence
.private void
addEffect
(BakedGlyph.Effect pEffect) float
finish
(int pBackgroundColor, float pX)
-
Field Details
-
bufferSource
-
dropShadow
private final boolean dropShadow -
dimFactor
private final float dimFactor -
r
private final float r -
g
private final float g -
b
private final float b -
a
private final float a -
pose
private final org.joml.Matrix4f pose -
mode
-
packedLightCoords
private final int packedLightCoords -
x
float x -
y
float y -
effects
-
-
Constructor Details
-
StringRenderOutput
public StringRenderOutput(MultiBufferSource p_181365_, float p_181366_, float p_181367_, int p_181368_, boolean p_181369_, org.joml.Matrix4f p_254510_, Font.DisplayMode p_181371_, int p_181372_)
-
-
Method Details
-
addEffect
-
accept
Accepts a single code point from aFormattedCharSequence
.- Specified by:
accept
in interfaceFormattedCharSink
- Parameters:
pPositionInCurrentSequence
- Contains the relative position of the character in the current sub-sequence. If multiple formatted char sequences have been combined, this value will reset to0
after each sequence has been fully consumed.- Returns:
true
to accept more characters,false
to stop traversing the sequence.
-
finish
public float finish(int pBackgroundColor, float pX)
-