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 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

      private void addEffect(BakedGlyph.Effect pEffect)
    • accept

      public boolean accept(int p_92967_, Style p_92968_, int p_92969_)
      Description copied from interface: FormattedCharSink
      Accepts a single code point from a FormattedCharSequence.
      Specified by:
      accept in interface FormattedCharSink
      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 to 0 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

      private int getTextColor(@Nullable TextColor pTextColor)
    • getShadowColor

      private int getShadowColor(Style pStyle, int pTextColor)
    • renderCharacters

      void renderCharacters()
    • getOverTextEffectDepth

      private float getOverTextEffectDepth()
    • getUnderTextEffectDepth

      private float getUnderTextEffectDepth()