Class Replacement
java.lang.Object
de.eldoria.eldoutilities.messages.Replacement
A replacement represents a text placeholder and its replacement.
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.kyori.adventure.text.minimessage.tag.resolver.TagResolver
static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver
Creates a new replacement.static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver
static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver
Creates a new replacement.static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver
Creates a new replacement.static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver
Creates a new replacement for a player.static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver
Creates a new replacement for a player.static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver
Creates a new replacement.static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver
static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver
static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver
Creates a new replacement for a player.static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver
replacement
(String key, Object value) Creates a new replacement.static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver
replacement
(String key, String value) Creates a new replacement.static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver
Creates a new replacement for a player.
-
Method Details
-
create
public static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver create(String key, String value) Creates a new replacement.- Parameters:
key
- key of replacementvalue
- value for replacement- Returns:
- replacement with registered replacement
-
replacement
public static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver replacement(String key, String value) Creates a new replacement.- Parameters:
key
- key of replacementvalue
- value for replacement- Returns:
- replacement with registered replacement
-
create
public static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver create(String key, Object value) Creates a new replacement.- Parameters:
key
- key of replacementvalue
- value for replacement- Returns:
- replacement with registered replacement
-
replacement
public static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver replacement(String key, Object value) Creates a new replacement.- Parameters:
key
- key of replacementvalue
- value for replacement- Returns:
- replacement with registered replacement
-
create
-
create
-
number
-
number
-
create
public static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver create(String key, Enum<?> anEnum) Creates a new replacement.- Parameters:
key
- key of replacementanEnum
- value which provides a string viaEnum.name()
- Returns:
- replacement with registered replacement
-
name
public static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver name(String key, Enum<?> anEnum) Creates a new replacement.- Parameters:
key
- key of replacementanEnum
- value which provides a string viaEnum.name()
- Returns:
- replacement with registered replacement
-
create
public static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver create(String key, Player player) Creates a new replacement for a player.- Parameters:
key
- key of replacementplayer
- value which provides the name of the player- Returns:
- replacement with registered replacement
-
player
public static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver player(String key, Player player) Creates a new replacement for a player.- Parameters:
key
- key of replacementplayer
- value which provides the name of the player- Returns:
- replacement with registered replacement
-
create
public static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver create(String key, World world) Creates a new replacement for a player.- Parameters:
key
- key of replacementworld
- world which provides the name of the world- Returns:
- replacement with registered replacement
-
world
public static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver world(String key, World world) Creates a new replacement for a player.- Parameters:
key
- key of replacementworld
- world which provides the name of the world- Returns:
- replacement with registered replacement
-