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 TranslationArgument
Get the argument representation of this object.static @NotNull TranslationArgument
bool
(boolean value) Create a boolean argument.static @NotNull TranslationArgument
component
(@NotNull ComponentLike value) Create a component argument.static @NotNull TranslationArgument
Create a numeric argument.@NotNull Object
value()
The argument's value.Methods inherited from interface net.kyori.examination.Examinable
examinableName, examinableProperties, examine
Methods 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:TranslationArgumentLike
Get the argument representation of this object.- Specified by:
asTranslationArgument
in interfaceTranslationArgumentLike
- Returns:
- the argument representation
-