Class ClickEvent

java.lang.Object
net.minecraft.text.ClickEvent

public class ClickEvent extends Object
Mappings:
Namespace Name
named net/minecraft/text/ClickEvent
intermediary net/minecraft/class_2558
official xn
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<ClickEvent> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/text/ClickEvent;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_46594 Lnet/minecraft/class_2558;field_46594:Lcom/mojang/serialization/Codec;
      official a Lxn;a:Lcom/mojang/serialization/Codec;
    • action

      private final ClickEvent.Action action
      Mappings:
      Namespace Name Mixin selector
      named action Lnet/minecraft/text/ClickEvent;action:Lnet/minecraft/text/ClickEvent$Action;
      intermediary field_11741 Lnet/minecraft/class_2558;field_11741:Lnet/minecraft/class_2558$class_2559;
      official b Lxn;b:Lxn$a;
    • value

      private final String value
      Mappings:
      Namespace Name Mixin selector
      named value Lnet/minecraft/text/ClickEvent;value:Ljava/lang/String;
      intermediary field_11740 Lnet/minecraft/class_2558;field_11740:Ljava/lang/String;
      official c Lxn;c:Ljava/lang/String;
  • Constructor Details

    • ClickEvent

      public ClickEvent(ClickEvent.Action action, String value)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/text/ClickEvent;<init>(Lnet/minecraft/text/ClickEvent$Action;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_2558;<init>(Lnet/minecraft/class_2558$class_2559;Ljava/lang/String;)V
      official <init> Lxn;<init>(Lxn$a;Ljava/lang/String;)V
  • Method Details

    • getAction

      public ClickEvent.Action getAction()
      Mappings:
      Namespace Name Mixin selector
      named getAction Lnet/minecraft/text/ClickEvent;getAction()Lnet/minecraft/text/ClickEvent$Action;
      intermediary method_10845 Lnet/minecraft/class_2558;method_10845()Lnet/minecraft/class_2558$class_2559;
      official a Lxn;a()Lxn$a;
    • getValue

      public String getValue()
      Mappings:
      Namespace Name Mixin selector
      named getValue Lnet/minecraft/text/ClickEvent;getValue()Ljava/lang/String;
      intermediary method_10844 Lnet/minecraft/class_2558;method_10844()Ljava/lang/String;
      official b Lxn;b()Ljava/lang/String;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/text/ClickEvent;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_2558;equals(Ljava/lang/Object;)Z
      official equals Lxn;equals(Ljava/lang/Object;)Z
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object