Interface TextConsumer

All Known Implementing Classes:
DrawContext.TextConsumerImpl, TextConsumer.ClickHandler

@Environment(CLIENT) public interface TextConsumer
Mappings:
Namespace Name
named net/minecraft/client/font/TextConsumer
intermediary net/minecraft/class_12225
official gfx
  • Field Details

    • MARQUEE_PERIOD_PER_EXCESS_WIDTH

      static final double MARQUEE_PERIOD_PER_EXCESS_WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MARQUEE_PERIOD_PER_EXCESS_WIDTH Lnet/minecraft/client/font/TextConsumer;MARQUEE_PERIOD_PER_EXCESS_WIDTH:D
      intermediary field_63832 Lnet/minecraft/class_12225;field_63832:D
      official a Lgfx;a:D
    • MARQUEE_MIN_PERIOD

      static final double MARQUEE_MIN_PERIOD
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MARQUEE_MIN_PERIOD Lnet/minecraft/client/font/TextConsumer;MARQUEE_MIN_PERIOD:D
      intermediary field_63833 Lnet/minecraft/class_12225;field_63833:D
      official b Lgfx;b:D
  • Method Details

    • getTransformation

      TextConsumer.Transformation getTransformation()
      Mappings:
      Namespace Name Mixin selector
      named getTransformation Lnet/minecraft/client/font/TextConsumer;getTransformation()Lnet/minecraft/client/font/TextConsumer$Transformation;
      intermediary method_75760 Lnet/minecraft/class_12225;method_75760()Lnet/minecraft/class_12225$class_12227;
      official a Lgfx;a()Lgfx$b;
    • setTransformation

      void setTransformation(TextConsumer.Transformation transformation)
      Mappings:
      Namespace Name Mixin selector
      named setTransformation Lnet/minecraft/client/font/TextConsumer;setTransformation(Lnet/minecraft/client/font/TextConsumer$Transformation;)V
      intermediary method_75764 Lnet/minecraft/class_12225;method_75764(Lnet/minecraft/class_12225$class_12227;)V
      official a Lgfx;a(Lgfx$b;)V
    • text

      default void text(int x, int y, OrderedText text)
      Mappings:
      Namespace Name Mixin selector
      named text Lnet/minecraft/client/font/TextConsumer;text(IILnet/minecraft/text/OrderedText;)V
      intermediary method_75762 Lnet/minecraft/class_12225;method_75762(IILnet/minecraft/class_5481;)V
      official a Lgfx;a(IILbfs;)V
    • text

      default void text(int x, int y, Text text)
      Mappings:
      Namespace Name Mixin selector
      named text Lnet/minecraft/client/font/TextConsumer;text(IILnet/minecraft/text/Text;)V
      intermediary method_75763 Lnet/minecraft/class_12225;method_75763(IILnet/minecraft/class_2561;)V
      official a Lgfx;a(IILym;)V
    • text

      default void text(Alignment alignment, int x, int y, TextConsumer.Transformation transformation, Text text)
      Mappings:
      Namespace Name Mixin selector
      named text Lnet/minecraft/client/font/TextConsumer;text(Lnet/minecraft/client/font/Alignment;IILnet/minecraft/client/font/TextConsumer$Transformation;Lnet/minecraft/text/Text;)V
      intermediary method_75767 Lnet/minecraft/class_12225;method_75767(Lnet/minecraft/class_11735;IILnet/minecraft/class_12225$class_12227;Lnet/minecraft/class_2561;)V
      official a Lgfx;a(Lggf;IILgfx$b;Lym;)V
    • text

      void text(Alignment alignment, int x, int y, TextConsumer.Transformation transformation, OrderedText text)
      Mappings:
      Namespace Name Mixin selector
      named text Lnet/minecraft/client/font/TextConsumer;text(Lnet/minecraft/client/font/Alignment;IILnet/minecraft/client/font/TextConsumer$Transformation;Lnet/minecraft/text/OrderedText;)V
      intermediary method_75766 Lnet/minecraft/class_12225;method_75766(Lnet/minecraft/class_11735;IILnet/minecraft/class_12225$class_12227;Lnet/minecraft/class_5481;)V
      official a Lgfx;a(Lggf;IILgfx$b;Lbfs;)V
    • text

      default void text(Alignment alignment, int x, int y, Text text)
      Mappings:
      Namespace Name Mixin selector
      named text Lnet/minecraft/client/font/TextConsumer;text(Lnet/minecraft/client/font/Alignment;IILnet/minecraft/text/Text;)V
      intermediary method_75768 Lnet/minecraft/class_12225;method_75768(Lnet/minecraft/class_11735;IILnet/minecraft/class_2561;)V
      official a Lgfx;a(Lggf;IILym;)V
    • text

      default void text(Alignment alignment, int x, int y, OrderedText text)
      Mappings:
      Namespace Name Mixin selector
      named text Lnet/minecraft/client/font/TextConsumer;text(Lnet/minecraft/client/font/Alignment;IILnet/minecraft/text/OrderedText;)V
      intermediary method_75765 Lnet/minecraft/class_12225;method_75765(Lnet/minecraft/class_11735;IILnet/minecraft/class_5481;)V
      official a Lgfx;a(Lggf;IILbfs;)V
    • marqueedText

      void marqueedText(Text text, int x, int left, int right, int top, int bottom, TextConsumer.Transformation transformation)
      Mappings:
      Namespace Name Mixin selector
      named marqueedText Lnet/minecraft/client/font/TextConsumer;marqueedText(Lnet/minecraft/text/Text;IIIIILnet/minecraft/client/font/TextConsumer$Transformation;)V
      intermediary method_75773 Lnet/minecraft/class_12225;method_75773(Lnet/minecraft/class_2561;IIIIILnet/minecraft/class_12225$class_12227;)V
      official a Lgfx;a(Lym;IIIIILgfx$b;)V
    • marqueedText

      default void marqueedText(Text text, int x, int left, int right, int top, int bottom)
      Mappings:
      Namespace Name Mixin selector
      named marqueedText Lnet/minecraft/client/font/TextConsumer;marqueedText(Lnet/minecraft/text/Text;IIIII)V
      intermediary method_75771 Lnet/minecraft/class_12225;method_75771(Lnet/minecraft/class_2561;IIIII)V
      official a Lgfx;a(Lym;IIIII)V
    • text

      default void text(Text text, int left, int right, int top, int bottom)
      Mappings:
      Namespace Name Mixin selector
      named text Lnet/minecraft/client/font/TextConsumer;text(Lnet/minecraft/text/Text;IIII)V
      intermediary method_75770 Lnet/minecraft/class_12225;method_75770(Lnet/minecraft/class_2561;IIII)V
      official a Lgfx;a(Lym;IIII)V
    • marqueedText

      default void marqueedText(Text text, int x, int left, int right, int top, int bottom, int width, int lineHeight, TextConsumer.Transformation transformation)
      Mappings:
      Namespace Name Mixin selector
      named marqueedText Lnet/minecraft/client/font/TextConsumer;marqueedText(Lnet/minecraft/text/Text;IIIIIIILnet/minecraft/client/font/TextConsumer$Transformation;)V
      intermediary method_75772 Lnet/minecraft/class_12225;method_75772(Lnet/minecraft/class_2561;IIIIIIILnet/minecraft/class_12225$class_12227;)V
      official a Lgfx;a(Lym;IIIIIIILgfx$b;)V
    • handleHover

      static void handleHover(TextGuiElementRenderState renderState, float mouseX, float mouseY, Consumer<Style> styleCallback)
      If the cursor is hovering over a piece of text, calls styleCallback on its style.
      Parameters:
      renderState - the text to check the cursor against
      mouseX - the X-coordinate of the cursor, in scaled units
      mouseY - the Y-coordinate of the cursor, in scaled units
      styleCallback - a callback to call on the style that the cursor is hovering over
      Mappings:
      Namespace Name Mixin selector
      named handleHover Lnet/minecraft/client/font/TextConsumer;handleHover(Lnet/minecraft/client/gui/render/state/TextGuiElementRenderState;FFLjava/util/function/Consumer;)V
      intermediary method_75769 Lnet/minecraft/class_12225;method_75769(Lnet/minecraft/class_11247;FFLjava/util/function/Consumer;)V
      official a Lgfx;a(Lgnt;FFLjava/util/function/Consumer;)V
    • isWithinBounds

      static boolean isWithinBounds(float x, float y, float left, float top, float right, float bottom)
      Mappings:
      Namespace Name Mixin selector
      named isWithinBounds Lnet/minecraft/client/font/TextConsumer;isWithinBounds(FFFFFF)Z
      intermediary method_75761 Lnet/minecraft/class_12225;method_75761(FFFFFF)Z
      official a Lgfx;a(FFFFFF)Z