Interface ActiveTextCollector
- All Known Implementing Classes:
ActiveTextCollector.ClickableStyleFinder
public interface ActiveTextCollector
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFinds what a click at a point lands on: a part of the text with a click event, or with an insertion when asked.static final recordHow a line is drawn: only its opacity here. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(TextAlignment alignment, int anchorX, int y, ActiveTextCollector.Parameters parameters, net.minecraft.util.FormattedCharSequence text) static @Nullable net.minecraft.network.chat.StylestyleAt(net.minecraft.client.gui.Font font, net.minecraft.util.FormattedCharSequence text, int left, int y, int testX, int testY) The style under a point of the text:nullwhen it's on none of the lines.
-
Method Details
-
defaultParameters
ActiveTextCollector.Parameters defaultParameters() -
accept
void accept(TextAlignment alignment, int anchorX, int y, ActiveTextCollector.Parameters parameters, net.minecraft.util.FormattedCharSequence text) -
styleAt
@Nullable static @Nullable net.minecraft.network.chat.Style styleAt(net.minecraft.client.gui.Font font, net.minecraft.util.FormattedCharSequence text, int left, int y, int testX, int testY) The style under a point of the text:nullwhen it's on none of the lines.
-