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 int
(package private) final MultiBufferSource
private final int
private final boolean
private List
<BakedGlyph.Effect> private final List
<BakedGlyph.GlyphInstance> private final boolean
private final Font.DisplayMode
private final int
private final org.joml.Matrix4f
(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_) StringRenderOutput
(MultiBufferSource p_379354_, float p_380215_, float p_380204_, int p_379495_, int p_380217_, boolean p_380305_, org.joml.Matrix4f p_380236_, Font.DisplayMode p_380021_, int p_379625_, boolean p_381720_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
private void
addEffect
(BakedGlyph.Effect p_92965_) (package private) float
finish
(float p_381032_) private float
private int
getShadowColor
(Style p_383230_, int p_383188_) private int
getTextColor
(TextColor p_382899_) private float
(package private) void
-
Field Details
-
bufferSource
-
drawShadow
private final boolean drawShadow -
color
private final int color -
backgroundColor
private final int backgroundColor -
pose
private final org.joml.Matrix4f pose -
mode
-
packedLightCoords
private final int packedLightCoords -
inverseDepth
private final boolean inverseDepth -
x
float x -
y
float y -
glyphInstances
-
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_) -
StringRenderOutput
public StringRenderOutput(MultiBufferSource p_379354_, float p_380215_, float p_380204_, int p_379495_, int p_380217_, boolean p_380305_, org.joml.Matrix4f p_380236_, Font.DisplayMode p_380021_, int p_379625_, boolean p_381720_)
-
-
Method Details
-
addEffect
-
accept
- Specified by:
accept
in interfaceFormattedCharSink
-
finish
float finish(float p_381032_) -
getTextColor
-
getShadowColor
-
renderCharacters
void renderCharacters() -
getOverTextEffectDepth
private float getOverTextEffectDepth() -
getUnderTextEffectDepth
private float getUnderTextEffectDepth()
-