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 MultiBufferSourceprivate final intprivate final booleanprivate List<BakedGlyph.Effect> private final List<BakedGlyph.GlyphInstance> private final booleanprivate final Font.DisplayModeprivate final intprivate 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 TypeMethodDescriptionbooleanAccepts a single code point from aFormattedCharSequence.private voidaddEffect(BakedGlyph.Effect pEffect) (package private) floatfinish(float pX) private floatprivate intgetShadowColor(Style pStyle, int pTextColor) private intgetTextColor(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:FormattedCharSinkAccepts a single code point from aFormattedCharSequence.- Specified by:
acceptin 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 to0after each sequence has been fully consumed.- Returns:
trueto accept more characters,falseto stop traversing the sequence.
-
finish
float finish(float pX) -
getTextColor
-
getShadowColor
-
renderCharacters
void renderCharacters() -
getOverTextEffectDepth
private float getOverTextEffectDepth() -
getUnderTextEffectDepth
private float getUnderTextEffectDepth()
-