Class FormattedContentSink
java.lang.Object
net.ixdarklord.coolcatcore.internal.chat.FormattedContentSink
- All Implemented Interfaces:
net.minecraft.network.chat.FormattedText.StyledContentConsumer<net.minecraft.util.Unit>,net.minecraft.util.FormattedCharSink
public class FormattedContentSink
extends Object
implements net.minecraft.network.chat.FormattedText.StyledContentConsumer<net.minecraft.util.Unit>, net.minecraft.util.FormattedCharSink
-
Constructor Summary
ConstructorsConstructorDescriptionFormattedContentSink(net.minecraft.network.chat.FormattedText formattedText) FormattedContentSink(net.minecraft.util.FormattedCharSequence formattedCharSequence) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(int width, net.minecraft.network.chat.Style style, int codePoint) @NotNull Optional<net.minecraft.util.Unit>net.minecraft.network.chat.ComponentList<net.minecraft.ChatFormatting>getFormatFromStyle(net.minecraft.network.chat.Style style) getStringFormatFromStyle(net.minecraft.network.chat.Style style)
-
Constructor Details
-
FormattedContentSink
public FormattedContentSink(net.minecraft.network.chat.FormattedText formattedText) -
FormattedContentSink
public FormattedContentSink(net.minecraft.util.FormattedCharSequence formattedCharSequence)
-
-
Method Details
-
accept
@NotNull public @NotNull Optional<net.minecraft.util.Unit> accept(net.minecraft.network.chat.Style style, String string) - Specified by:
acceptin interfacenet.minecraft.network.chat.FormattedText.StyledContentConsumer<net.minecraft.util.Unit>
-
accept
public boolean accept(int width, net.minecraft.network.chat.Style style, int codePoint) - Specified by:
acceptin interfacenet.minecraft.util.FormattedCharSink
-
getComponent
public net.minecraft.network.chat.Component getComponent() -
getString
-
getStringFormatFromStyle
-
getFormatFromStyle
public List<net.minecraft.ChatFormatting> getFormatFromStyle(net.minecraft.network.chat.Style style)
-