Package net.minecraft.client.font
Interface TextConsumer
- All Known Implementing Classes:
DrawContext.TextConsumerImpl,TextConsumer.ClickHandler
- Mappings:
Namespace Name named net/minecraft/client/font/TextConsumerintermediary net/minecraft/class_12225official gfz
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final double -
Method Summary
Modifier and TypeMethodDescriptionstatic voidhandleHover(TextGuiElementRenderState renderState, float mouseX, float mouseY, Consumer<Style> styleCallback) If the cursor is hovering over a piece of text, callsstyleCallbackon its style.static booleanisWithinBounds(float x, float y, float left, float top, float right, float bottom) default voidmarqueedText(Text text, int x, int left, int right, int top, int bottom) default voidmarqueedText(Text text, int x, int left, int right, int top, int bottom, int width, int lineHeight, TextConsumer.Transformation transformation) voidmarqueedText(Text text, int x, int left, int right, int top, int bottom, TextConsumer.Transformation transformation) voidsetTransformation(TextConsumer.Transformation transformation) default voidtext(int x, int y, OrderedText text) default voidvoidtext(Alignment alignment, int x, int y, TextConsumer.Transformation transformation, OrderedText text) default voidtext(Alignment alignment, int x, int y, TextConsumer.Transformation transformation, Text text) default voidtext(Alignment alignment, int x, int y, OrderedText text) default voiddefault void
-
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_WIDTHLnet/minecraft/client/font/TextConsumer;MARQUEE_PERIOD_PER_EXCESS_WIDTH:Dintermediary field_63832Lnet/minecraft/class_12225;field_63832:Dofficial aLgfz;a:D
-
MARQUEE_MIN_PERIOD
static final double MARQUEE_MIN_PERIOD- See Also:
- Mappings:
Namespace Name Mixin selector named MARQUEE_MIN_PERIODLnet/minecraft/client/font/TextConsumer;MARQUEE_MIN_PERIOD:Dintermediary field_63833Lnet/minecraft/class_12225;field_63833:Dofficial bLgfz;b:D
-
-
Method Details
-
getTransformation
TextConsumer.Transformation getTransformation()- Mappings:
Namespace Name Mixin selector named getTransformationLnet/minecraft/client/font/TextConsumer;getTransformation()Lnet/minecraft/client/font/TextConsumer$Transformation;intermediary method_75760Lnet/minecraft/class_12225;method_75760()Lnet/minecraft/class_12225$class_12227;official aLgfz;a()Lgfz$b;
-
setTransformation
- Mappings:
Namespace Name Mixin selector named setTransformationLnet/minecraft/client/font/TextConsumer;setTransformation(Lnet/minecraft/client/font/TextConsumer$Transformation;)Vintermediary method_75764Lnet/minecraft/class_12225;method_75764(Lnet/minecraft/class_12225$class_12227;)Vofficial aLgfz;a(Lgfz$b;)V
-
text
- Mappings:
Namespace Name Mixin selector named textLnet/minecraft/client/font/TextConsumer;text(IILnet/minecraft/text/OrderedText;)Vintermediary method_75762Lnet/minecraft/class_12225;method_75762(IILnet/minecraft/class_5481;)Vofficial aLgfz;a(IILbft;)V
-
text
- Mappings:
Namespace Name Mixin selector named textLnet/minecraft/client/font/TextConsumer;text(IILnet/minecraft/text/Text;)Vintermediary method_75763Lnet/minecraft/class_12225;method_75763(IILnet/minecraft/class_2561;)Vofficial aLgfz;a(IILym;)V
-
text
default void text(Alignment alignment, int x, int y, TextConsumer.Transformation transformation, Text text) - Mappings:
Namespace Name Mixin selector named textLnet/minecraft/client/font/TextConsumer;text(Lnet/minecraft/client/font/Alignment;IILnet/minecraft/client/font/TextConsumer$Transformation;Lnet/minecraft/text/Text;)Vintermediary method_75767Lnet/minecraft/class_12225;method_75767(Lnet/minecraft/class_11735;IILnet/minecraft/class_12225$class_12227;Lnet/minecraft/class_2561;)Vofficial aLgfz;a(Lggh;IILgfz$b;Lym;)V
-
text
void text(Alignment alignment, int x, int y, TextConsumer.Transformation transformation, OrderedText text) - Mappings:
Namespace Name Mixin selector named textLnet/minecraft/client/font/TextConsumer;text(Lnet/minecraft/client/font/Alignment;IILnet/minecraft/client/font/TextConsumer$Transformation;Lnet/minecraft/text/OrderedText;)Vintermediary method_75766Lnet/minecraft/class_12225;method_75766(Lnet/minecraft/class_11735;IILnet/minecraft/class_12225$class_12227;Lnet/minecraft/class_5481;)Vofficial aLgfz;a(Lggh;IILgfz$b;Lbft;)V
-
text
- Mappings:
Namespace Name Mixin selector named textLnet/minecraft/client/font/TextConsumer;text(Lnet/minecraft/client/font/Alignment;IILnet/minecraft/text/Text;)Vintermediary method_75768Lnet/minecraft/class_12225;method_75768(Lnet/minecraft/class_11735;IILnet/minecraft/class_2561;)Vofficial aLgfz;a(Lggh;IILym;)V
-
text
- Mappings:
Namespace Name Mixin selector named textLnet/minecraft/client/font/TextConsumer;text(Lnet/minecraft/client/font/Alignment;IILnet/minecraft/text/OrderedText;)Vintermediary method_75765Lnet/minecraft/class_12225;method_75765(Lnet/minecraft/class_11735;IILnet/minecraft/class_5481;)Vofficial aLgfz;a(Lggh;IILbft;)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 marqueedTextLnet/minecraft/client/font/TextConsumer;marqueedText(Lnet/minecraft/text/Text;IIIIILnet/minecraft/client/font/TextConsumer$Transformation;)Vintermediary method_75773Lnet/minecraft/class_12225;method_75773(Lnet/minecraft/class_2561;IIIIILnet/minecraft/class_12225$class_12227;)Vofficial aLgfz;a(Lym;IIIIILgfz$b;)V
-
marqueedText
- Mappings:
Namespace Name Mixin selector named marqueedTextLnet/minecraft/client/font/TextConsumer;marqueedText(Lnet/minecraft/text/Text;IIIII)Vintermediary method_75771Lnet/minecraft/class_12225;method_75771(Lnet/minecraft/class_2561;IIIII)Vofficial aLgfz;a(Lym;IIIII)V
-
text
- Mappings:
Namespace Name Mixin selector named textLnet/minecraft/client/font/TextConsumer;text(Lnet/minecraft/text/Text;IIII)Vintermediary method_75770Lnet/minecraft/class_12225;method_75770(Lnet/minecraft/class_2561;IIII)Vofficial aLgfz;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 marqueedTextLnet/minecraft/client/font/TextConsumer;marqueedText(Lnet/minecraft/text/Text;IIIIIIILnet/minecraft/client/font/TextConsumer$Transformation;)Vintermediary method_75772Lnet/minecraft/class_12225;method_75772(Lnet/minecraft/class_2561;IIIIIIILnet/minecraft/class_12225$class_12227;)Vofficial aLgfz;a(Lym;IIIIIIILgfz$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, callsstyleCallbackon its style.- Parameters:
renderState- the text to check the cursor againstmouseX- the X-coordinate of the cursor, in scaled unitsmouseY- the Y-coordinate of the cursor, in scaled unitsstyleCallback- a callback to call on the style that the cursor is hovering over- Mappings:
Namespace Name Mixin selector named handleHoverLnet/minecraft/client/font/TextConsumer;handleHover(Lnet/minecraft/client/gui/render/state/TextGuiElementRenderState;FFLjava/util/function/Consumer;)Vintermediary method_75769Lnet/minecraft/class_12225;method_75769(Lnet/minecraft/class_11247;FFLjava/util/function/Consumer;)Vofficial aLgfz;a(Lgnv;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 isWithinBoundsLnet/minecraft/client/font/TextConsumer;isWithinBounds(FFFFFF)Zintermediary method_75761Lnet/minecraft/class_12225;method_75761(FFFFFF)Zofficial aLgfz;a(FFFFFF)Z
-