Class SocialInjectionLiteralParser
java.lang.Object
ovh.mythmc.social.api.text.injection.defaults.SocialInjectionLiteralParser
- All Implemented Interfaces:
SocialInjectionParser<SocialInjectedLiteral>
public class SocialInjectionLiteralParser
extends Object
implements SocialInjectionParser<SocialInjectedLiteral>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse(@NotNull SocialParserContext context, @NotNull SocialInjectedLiteral value) Parses aSocialParserContextfor the givenSocialInjectionParserand returns the result.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
SocialInjectionLiteralParser
public SocialInjectionLiteralParser()
-
-
Method Details
-
parse
public Component parse(@NotNull @NotNull SocialParserContext context, @NotNull @NotNull SocialInjectedLiteral value) Description copied from interface:SocialInjectionParserParses aSocialParserContextfor the givenSocialInjectionParserand returns the result.- Specified by:
parsein interfaceSocialInjectionParser<SocialInjectedLiteral>- Parameters:
context- theSocialParserContextto parsevalue- theSocialInjectionParserto apply- Returns:
- a
Componentwith the injected value applied
-