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 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:
      accept in interface net.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:
      accept in interface net.minecraft.util.FormattedCharSink
    • getComponent

      public net.minecraft.network.chat.Component getComponent()
    • getString

      public String getString()
    • getStringFormatFromStyle

      public String getStringFormatFromStyle(net.minecraft.network.chat.Style style)
    • getFormatFromStyle

      public List<net.minecraft.ChatFormatting> getFormatFromStyle(net.minecraft.network.chat.Style style)