Class SubstituteTextContent

java.lang.Object
de.z0rdak.yawp.util.text.messages.SubstituteTextContent
All Implemented Interfaces:
net.minecraft.network.chat.ComponentContents

@Deprecated(since="Not used until YAWP is required on client-side", forRemoval=false) public class SubstituteTextContent extends Object implements net.minecraft.network.chat.ComponentContents
Deprecated.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.network.chat.ComponentContents

    net.minecraft.network.chat.ComponentContents.Type<T extends net.minecraft.network.chat.ComponentContents>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.MapCodec<SubstituteTextContent>
    Deprecated.
     
    static final Object[]
    Deprecated.
     
    static final net.minecraft.network.chat.ComponentContents.Type<SubstituteTextContent>
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
     
    final net.minecraft.network.chat.FormattedText
    getArg(int index)
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    int
    Deprecated.
     
    static boolean
    Deprecated.
     
    net.minecraft.network.chat.MutableComponent
    resolve(@Nullable net.minecraft.commands.CommandSourceStack source, @Nullable net.minecraft.world.entity.Entity sender, int depth)
    Deprecated.
     
    Deprecated.
     
    net.minecraft.network.chat.ComponentContents.Type<SubstituteTextContent>
    Deprecated.
     
    <T> Optional<T>
    visit(net.minecraft.network.chat.FormattedText.ContentConsumer<T> visitor)
    Deprecated.
     
    <T> Optional<T>
    visit(net.minecraft.network.chat.FormattedText.StyledContentConsumer<T> visitor, net.minecraft.network.chat.Style style)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • TYPE

      public static final net.minecraft.network.chat.ComponentContents.Type<SubstituteTextContent> TYPE
      Deprecated.
    • CODEC

      public static final com.mojang.serialization.MapCodec<SubstituteTextContent> CODEC
      Deprecated.
    • NO_ARGS

      public static final Object[] NO_ARGS
      Deprecated.
  • Constructor Details

    • SubstituteTextContent

      public SubstituteTextContent(String pattern, Object[] args)
      Deprecated.
  • Method Details

    • isAllowedPrimitiveArgument

      public static boolean isAllowedPrimitiveArgument(@Nullable @Nullable Object input)
      Deprecated.
    • getArg

      public final net.minecraft.network.chat.FormattedText getArg(int index)
      Deprecated.
    • visit

      public <T> Optional<T> visit(net.minecraft.network.chat.FormattedText.StyledContentConsumer<T> visitor, net.minecraft.network.chat.Style style)
      Deprecated.
      Specified by:
      visit in interface net.minecraft.network.chat.ComponentContents
    • visit

      public <T> Optional<T> visit(net.minecraft.network.chat.FormattedText.ContentConsumer<T> visitor)
      Deprecated.
      Specified by:
      visit in interface net.minecraft.network.chat.ComponentContents
    • resolve

      public net.minecraft.network.chat.MutableComponent resolve(@Nullable @Nullable net.minecraft.commands.CommandSourceStack source, @Nullable @Nullable net.minecraft.world.entity.Entity sender, int depth) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Deprecated.
      Specified by:
      resolve in interface net.minecraft.network.chat.ComponentContents
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • type

      public net.minecraft.network.chat.ComponentContents.Type<SubstituteTextContent> type()
      Deprecated.
      Specified by:
      type in interface net.minecraft.network.chat.ComponentContents
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • getPattern

      public String getPattern()
      Deprecated.
    • getArgs

      public Object[] getArgs()
      Deprecated.