Package com.minecolonies.core.commands
Class ClickEventWithExecutable
java.lang.Object
net.minecraft.network.chat.ClickEvent
com.minecolonies.core.commands.ClickEventWithExecutable
public class ClickEventWithExecutable
extends net.minecraft.network.chat.ClickEvent
Small utility class to run an executable on a chat click event.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.network.chat.ClickEvent
net.minecraft.network.chat.ClickEvent.Action -
Field Summary
Fields inherited from class net.minecraft.network.chat.ClickEvent
CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.network.chat.ClickEvent.ActionTriggered when the chat component is clicked.Methods inherited from class net.minecraft.network.chat.ClickEvent
equals, getValue, hashCode, toString
-
Constructor Details
-
ClickEventWithExecutable
Default constructor.- Parameters:
actions- the actions this event should execute.
-
-
Method Details
-
getAction
@NotNull public @NotNull net.minecraft.network.chat.ClickEvent.Action getAction()Triggered when the chat component is clicked.- Overrides:
getActionin classnet.minecraft.network.chat.ClickEvent
-