Class MeteorClickEvent

java.lang.Object
meteordevelopment.meteorclient.utils.misc.text.MeteorClickEvent
All Implemented Interfaces:
net.minecraft.text.ClickEvent
Direct Known Subclasses:
RunnableClickEvent

public class MeteorClickEvent extends Object implements net.minecraft.text.ClickEvent
This class does nothing except ensure that ClickEvent's containing Meteor Client commands can only be executed if they come from the client.
See Also:
  • ScreenMixin.onRunCommand(Style, CallbackInfoReturnable)
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.text.ClickEvent

    net.minecraft.text.ClickEvent.Action, net.minecraft.text.ClickEvent.ChangePage, net.minecraft.text.ClickEvent.CopyToClipboard, net.minecraft.text.ClickEvent.OpenFile, net.minecraft.text.ClickEvent.OpenUrl, net.minecraft.text.ClickEvent.RunCommand, net.minecraft.text.ClickEvent.SuggestCommand
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final String
     

    Fields inherited from interface net.minecraft.text.ClickEvent

    CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.text.ClickEvent.Action
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • value

      public final String value
  • Constructor Details

    • MeteorClickEvent

      public MeteorClickEvent(String value)
  • Method Details

    • getAction

      public net.minecraft.text.ClickEvent.Action getAction()
      Specified by:
      getAction in interface net.minecraft.text.ClickEvent