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 pBufferSource, float pX, float pY, int pColor, boolean pDropShadow, org.joml.Matrix4f pPose, Font.DisplayMode pMode, int pPackedLightCoords) StringRenderOutput
(MultiBufferSource pBuferSource, float pX, float pY, int pColor, int pBackgroundColor, boolean pDropShadow, org.joml.Matrix4f pPose, Font.DisplayMode pDisplayMode, int pPackedLightCoords, boolean pInverseDepth) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Accepts a single code point from aFormattedCharSequence
.private void
addEffect
(BakedGlyph.Effect pEffect) (package private) float
finish
(float pX) private float
private int
getShadowColor
(Style pStyle, int pTextColor) private int
getTextColor
(TextColor pTextColor) 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 pBufferSource, float pX, float pY, int pColor, boolean pDropShadow, org.joml.Matrix4f pPose, Font.DisplayMode pMode, int pPackedLightCoords) -
StringRenderOutput
public StringRenderOutput(MultiBufferSource pBuferSource, float pX, float pY, int pColor, int pBackgroundColor, boolean pDropShadow, org.joml.Matrix4f pPose, Font.DisplayMode pDisplayMode, int pPackedLightCoords, boolean pInverseDepth)
-
-
Method Details
-
addEffect
-
accept
Description copied from interface:FormattedCharSink
Accepts a single code point from aFormattedCharSequence
.- Specified by:
accept
in interfaceFormattedCharSink
- Parameters:
p_92967_
- 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
float finish(float pX) -
getTextColor
-
getShadowColor
-
renderCharacters
void renderCharacters() -
getOverTextEffectDepth
private float getOverTextEffectDepth() -
getUnderTextEffectDepth
private float getUnderTextEffectDepth()
-