Class SocialContextualKeyword
java.lang.Object
ovh.mythmc.social.api.text.parser.SocialContextualKeyword
- All Implemented Interfaces:
SocialContextualParser,SocialIdentifiedParser,SocialUserInputParser
public abstract class SocialContextualKeyword
extends Object
implements SocialUserInputParser, SocialIdentifiedParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets theidentifierof thisSocialContextualParser.abstract Stringkeyword()parse(SocialParserContext context) Parses the givenSocialParserContextand returns aComponentrepresentation.abstract Componentprocess(SocialParserContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ovh.mythmc.social.api.text.parser.SocialContextualParser
supportsOfflinePlayers
-
Constructor Details
-
SocialContextualKeyword
public SocialContextualKeyword()
-
-
Method Details
-
keyword
-
process
-
identifier
Description copied from interface:SocialIdentifiedParserGets theidentifierof thisSocialContextualParser.- Specified by:
identifierin interfaceSocialIdentifiedParser- Returns:
- the
identifierof thisSocialContextualParser
-
parse
Description copied from interface:SocialContextualParserParses the givenSocialParserContextand returns aComponentrepresentation.- Specified by:
parsein interfaceSocialContextualParser- Parameters:
context- the context in which the message is being parsed. It contains information such as the sender, the original message, and other contextual information.- Returns:
- a
Componentrepresenting the parsed message.
-