Package net.evmodder.EvLib.extras
Class KeybindComponent
java.lang.Object
net.evmodder.EvLib.extras.TellrawUtils.Component
net.evmodder.EvLib.extras.TellrawUtils.KeybindComponent
- Enclosing class:
TellrawUtils
-
Constructor Summary
ConstructorsConstructorDescriptionKeybindComponent
(Keybind keybind) KeybindComponent
(Keybind keybind, String insert, TextClickAction click, TextHoverAction hover, String color, Map<Format, Boolean> formats) -
Method Summary
Modifier and TypeMethodDescriptionReturns what this component would appear as (in plain text) if parsed by Minecraft's JSON/tellraw resolver.
-
Constructor Details
-
KeybindComponent
-
KeybindComponent
public KeybindComponent(Keybind keybind, String insert, TextClickAction click, TextHoverAction hover, String color, Map<Format, Boolean> formats)
-
-
Method Details
-
toPlainText
Description copied from class:Component
Returns what this component would appear as (in plain text) if parsed by Minecraft's JSON/tellraw resolver.- Specified by:
toPlainText
in classComponent
- Returns:
- a String representing the resolved text of this component
-