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 floatprivate final float(package private) final MultiBufferSourceprivate final floatprivate final booleanprivate List<BakedGlyph.Effect> private final floatprivate final Font.DisplayModeprivate final intprivate final org.joml.Matrix4fprivate final float(package private) float(package private) float -
Constructor Summary
ConstructorsConstructorDescriptionStringRenderOutput(MultiBufferSource bufferSource, float x, float y, int color, boolean dropShadow, org.joml.Matrix4f pose, Font.DisplayMode mode, int packedLightCoords) -
Method Summary
Modifier and TypeMethodDescriptionbooleanAccepts a single code point from aFormattedCharSequence.private voidaddEffect(BakedGlyph.Effect effect) floatfinish(int backgroundColor, float x)
-
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 bufferSource, float x, float y, int color, boolean dropShadow, org.joml.Matrix4f pose, Font.DisplayMode mode, int packedLightCoords)
-
-
Method Details
-
addEffect
-
accept
Accepts a single code point from aFormattedCharSequence.- Specified by:
acceptin interfaceFormattedCharSink- Parameters:
positionInCurrentSequence- Contains the relative position of the character in the current sub-sequence. If multiple formatted char sequences have been combined, this value will reset to0after each sequence has been fully consumed.- Returns:
trueto accept more characters,falseto stop traversing the sequence.
-
finish
public float finish(int backgroundColor, float x)
-