Interface TranslationArgument
- All Superinterfaces:
ComponentLike, TranslationArgumentLike
An argument that can be part of a
TranslatableComponent.- Since:
- 4.15.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault TranslationArgumentGet the argument representation of this object.static TranslationArgumentbool(boolean value) Create a boolean argument.static TranslationArgumentcomponent(ComponentLike value) Create a component argument.static TranslationArgumentCreate a numeric argument.value()The argument's value.Methods inherited from interface 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
-
asTranslationArgument
Description copied from interface:TranslationArgumentLikeGet the argument representation of this object.- Specified by:
asTranslationArgumentin interfaceTranslationArgumentLike- Returns:
- the argument representation
-