Package cloud.commandframework.captions
Class CaptionVariable
- java.lang.Object
-
- cloud.commandframework.captions.CaptionVariable
-
public final class CaptionVariable extends java.lang.Object
Key-value pair used to replace variables in captions
-
-
Method Summary
Modifier and Type Method Description @NonNull java.lang.String
getKey()
Get the variable key@NonNull java.lang.String
getValue()
Get the variable valuestatic @NonNull CaptionVariable
of(@NonNull java.lang.String key, @NonNull java.lang.String value)
Create a new caption variable instance
-
-
-
Method Detail
-
of
public static @NonNull CaptionVariable of(@NonNull java.lang.String key, @NonNull java.lang.String value)
Create a new caption variable instance- Parameters:
key
- Keyvalue
- Replacement- Returns:
- Created instance
-
getKey
public @NonNull java.lang.String getKey()
Get the variable key- Returns:
- Key
-
getValue
public @NonNull java.lang.String getValue()
Get the variable value- Returns:
- Value
-
-