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 Matrix4f(package private) float(package private) float -
Constructor Summary
ConstructorsConstructorDescriptionStringRenderOutput(MultiBufferSource bufferSource, float x, float y, int color, boolean dropShadow, Matrix4f pose, Font.DisplayMode mode, int packedLightCoords) StringRenderOutput(MultiBufferSource buferSource, float x, float y, int color, int backgroundColor, boolean dropShadow, Matrix4f pose, Font.DisplayMode displayMode, int packedLightCoords, boolean inverseDepth) -
Method Summary
Modifier and TypeMethodDescriptionbooleanAccepts a single code point from aFormattedCharSequence.private voidaddEffect(BakedGlyph.Effect effect) (package private) floatfinish(float x) private floatprivate intgetShadowColor(Style style, int textColor) private intgetTextColor(TextColor textColor) private float(package private) void
-
Field Details
-
bufferSource
-
drawShadow
private final boolean drawShadow -
color
private final int color -
backgroundColor
private final int backgroundColor -
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 bufferSource, float x, float y, int color, boolean dropShadow, Matrix4f pose, Font.DisplayMode mode, int packedLightCoords) -
StringRenderOutput
public StringRenderOutput(MultiBufferSource buferSource, float x, float y, int color, int backgroundColor, boolean dropShadow, Matrix4f pose, Font.DisplayMode displayMode, int packedLightCoords, boolean inverseDepth)
-
-
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 x) -
getTextColor
-
getShadowColor
-
renderCharacters
void renderCharacters() -
getOverTextEffectDepth
private float getOverTextEffectDepth() -
getUnderTextEffectDepth
private float getUnderTextEffectDepth()
-