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
    Constructor
    Description
    ClickEventWithExecutable(@NotNull Runnable... actions)
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.minecraft.network.chat.ClickEvent.Action
    Triggered when the chat component is clicked.

    Methods inherited from class net.minecraft.network.chat.ClickEvent

    equals, getValue, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ClickEventWithExecutable

      public ClickEventWithExecutable(@NotNull @NotNull Runnable... actions)
      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:
      getAction in class net.minecraft.network.chat.ClickEvent