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