Package me.neznamy.tab.api.chat
Class ChatClickable
java.lang.Object
me.neznamy.tab.api.chat.ChatClickable
Class for click event action in chat component
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum for all possible click actions -
Constructor Summary
ConstructorsConstructorDescriptionChatClickable(ChatClickable.EnumClickAction action, String value) Constructs new instance with given action and value. -
Method Summary
Modifier and TypeMethodDescriptionReturns click action defined in constructorgetValue()Returns click action defined in constructor
-
Constructor Details
-
ChatClickable
Constructs new instance with given action and value.- Parameters:
action- click event actionvalue- click event value- Throws:
IllegalArgumentException- ifactionis null orvalueis null
-
-
Method Details
-
getAction
Returns click action defined in constructor- Returns:
- click action
-
getValue
Returns click action defined in constructor- Returns:
- click action
-