Package net.kyori.adventure.text
Interface TranslationArgument
- All Superinterfaces:
ComponentLike,net.kyori.examination.Examinable,TranslationArgumentLike
@NonExtendable
public interface TranslationArgument
extends TranslationArgumentLike, net.kyori.examination.Examinable
An argument that can be part of a
TranslatableComponent.- Since:
- 4.15.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull TranslationArgumentGet the argument representation of this object.static @NotNull TranslationArgumentbool(boolean value) Create a boolean argument.static @NotNull TranslationArgumentcomponent(@NotNull ComponentLike value) Create a component argument.static @NotNull TranslationArgumentCreate a numeric argument.@NotNull Objectvalue()The argument's value.Methods inherited from interface net.kyori.examination.Examinable
examinableName, examinableProperties, examineMethods inherited from interface net.kyori.adventure.text.TranslationArgumentLike
asComponent
-
Method Details
-
bool
Create a boolean argument.- Parameters:
value- the value- Returns:
- the argument
- Since:
- 4.15.0
- Since Minecraft:
- 1.20.3
-
numeric
Create a numeric argument.- Parameters:
value- the value- Returns:
- the argument
- Since:
- 4.15.0
- Since Minecraft:
- 1.20.3
-
component
Create a component argument.- Parameters:
value- the value- Returns:
- the argument
- Since:
- 4.15.0
- Since Minecraft:
- 1.20.3
-
value
The argument's value.- Returns:
- the argument value
- Since:
- 4.15.0
-
asTranslationArgument
Description copied from interface:TranslationArgumentLikeGet the argument representation of this object.- Specified by:
asTranslationArgumentin interfaceTranslationArgumentLike- Returns:
- the argument representation
-