Enum Class MessagePipeline.ReplacementTag
java.lang.Object
java.lang.Enum<MessagePipeline.ReplacementTag>
net.flectone.pulse.pipeline.MessagePipeline.ReplacementTag
- All Implemented Interfaces:
Serializable, Comparable<MessagePipeline.ReplacementTag>, Constable
- Enclosing interface:
MessagePipeline
Every tag the formatting modules can insert. The lowercase name is the tag written in a message.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic net.kyori.adventure.text.minimessage.tag.resolver.TagResolveremptyResolver(String tag) A resolver that erases a tag, used when the module behind it is switched off.static @NonNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolveremptyResolver(@NonNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver tagResolver) A resolver that erases every replacement tag the given resolver does not serve itselfstatic net.kyori.adventure.text.minimessage.tag.TagemptyTag()A tag that renders to nothing.The tag as written in a message.Returns the enum constant of this class with the specified name.static MessagePipeline.ReplacementTag[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AFK
-
ANIMATION
-
CONDITION
-
MUTE
-
STREAM
-
SERVER
-
SUFFIX
-
PREFIX
-
DELETE
-
DISPLAY_NAME
-
PLAYER
-
NICKNAME
-
CONSTANT
-
REPLACEMENT
-
MENTION
-
TOPONLINE
-
ONLINE
-
PADDING
-
SWEAR
-
QUESTION
-
TRANSLATION
-
WORLD
-
PLAYER_HEAD
-
PLAYER_HEAD_OR
-
SPRITE
-
SPRITE_OR
-
TEXTURE
-
TEXTURE_OR
-
FADING
-
FCOLOR
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
emptyResolver
public static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver emptyResolver(@TagPattern String tag) A resolver that erases a tag, used when the module behind it is switched off.- Parameters:
tag- the tag name- Returns:
- the resolver
-
emptyResolver
public static @NonNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver emptyResolver(@NonNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver tagResolver) A resolver that erases every replacement tag the given resolver does not serve itself- Parameters:
tagResolver- the resolvers already in scope- Returns:
- the resolver
-
emptyTag
public static net.kyori.adventure.text.minimessage.tag.Tag emptyTag()A tag that renders to nothing.- Returns:
- the empty tag
-
getTagName
-