Interface MinecraftVariable
- All Superinterfaces:
CaptionVariable
-
Method Summary
Modifier and TypeMethodDescription@NonNull net.minecraft.network.chat.ComponentComponentvalue().key()static MinecraftVariableCreates a newMinecraftVariable.value()
-
Method Details
-
key
- Specified by:
keyin interfaceCaptionVariable
-
value
- Specified by:
valuein interfaceCaptionVariable
-
componentValue
-
of
static MinecraftVariable of(@NonNull String key, @NonNull net.minecraft.network.chat.Component value) Creates a newMinecraftVariable.- Parameters:
key- keyvalue- value- Returns:
- new variable
-