Class Font.StringRenderOutput

java.lang.Object
net.minecraft.client.gui.Font.StringRenderOutput
All Implemented Interfaces:
FormattedCharSink
Enclosing class:
Font

class Font.StringRenderOutput extends Object implements FormattedCharSink
  • Field Details

    • bufferSource

      final MultiBufferSource bufferSource
    • drawShadow

      private final boolean drawShadow
    • color

      private final int color
    • backgroundColor

      private final int backgroundColor
    • pose

      private final org.joml.Matrix4f pose
    • mode

      private final Font.DisplayMode mode
    • packedLightCoords

      private final int packedLightCoords
    • inverseDepth

      private final boolean inverseDepth
    • x

      float x
    • y

      float y
    • glyphInstances

      private final List<BakedGlyph.GlyphInstance> glyphInstances
    • effects

      @Nullable private List<BakedGlyph.Effect> 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

      private void addEffect(BakedGlyph.Effect p_92965_)
    • accept

      public boolean accept(int p_92967_, Style p_92968_, int p_92969_)
      Specified by:
      accept in interface FormattedCharSink
    • finish

      float finish(float p_381032_)
    • getTextColor

      private int getTextColor(@Nullable TextColor p_382899_)
    • getShadowColor

      private int getShadowColor(Style p_383230_, int p_383188_)
    • renderCharacters

      void renderCharacters()
    • getOverTextEffectDepth

      private float getOverTextEffectDepth()
    • getUnderTextEffectDepth

      private float getUnderTextEffectDepth()