Package cloud.commandframework.captions
Class Caption
- java.lang.Object
-
- cloud.commandframework.captions.Caption
-
public final class Caption extends java.lang.Object
This is a reference to a caption and does not contain any message itself
-
-
Method Detail
-
of
public static @NonNull Caption of(@NonNull java.lang.String key)
Create a new caption with a given key- Parameters:
key
- Caption key- Returns:
- Created caption
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
getKey
public @NonNull java.lang.String getKey()
Get the caption key- Returns:
- Caption key
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-