Class HoverEvent.EntityContent

java.lang.Object
net.minecraft.text.HoverEvent.EntityContent
Enclosing class:
HoverEvent

public static class HoverEvent.EntityContent
extends Object
Mappings:
Namespace Name
official om$b
intermediary net/minecraft/class_2568$class_5248
named net/minecraft/text/HoverEvent$EntityContent
  • Field Details

    • entityType

      public final EntityType<?> entityType
      Mappings:
      Namespace Name Mixin selector
      official a Lom$b;a:Laqz;
      intermediary field_24351 Lnet/minecraft/class_2568$class_5248;field_24351:Lnet/minecraft/class_1299;
      named entityType Lnet/minecraft/text/HoverEvent$EntityContent;entityType:Lnet/minecraft/entity/EntityType;
    • uuid

      public final UUID uuid
      Mappings:
      Namespace Name Mixin selector
      official b Lom$b;b:Ljava/util/UUID;
      intermediary field_24352 Lnet/minecraft/class_2568$class_5248;field_24352:Ljava/util/UUID;
      named uuid Lnet/minecraft/text/HoverEvent$EntityContent;uuid:Ljava/util/UUID;
    • name

      @Nullable public final Text name
      Mappings:
      Namespace Name Mixin selector
      official c Lom$b;c:Loi;
      intermediary field_24353 Lnet/minecraft/class_2568$class_5248;field_24353:Lnet/minecraft/class_2561;
      named name Lnet/minecraft/text/HoverEvent$EntityContent;name:Lnet/minecraft/text/Text;
    • tooltip

      @Environment(CLIENT) @Nullable private List<Text> tooltip
      Mappings:
      Namespace Name Mixin selector
      official d Lom$b;d:Ljava/util/List;
      intermediary field_24354 Lnet/minecraft/class_2568$class_5248;field_24354:Ljava/util/List;
      named tooltip Lnet/minecraft/text/HoverEvent$EntityContent;tooltip:Ljava/util/List;
  • Constructor Details

    • EntityContent

      public EntityContent​(EntityType<?> entityType, UUID uuid, @Nullable Text name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lom$b;<init>(Laqz;Ljava/util/UUID;Loi;)V
      intermediary <init> Lnet/minecraft/class_2568$class_5248;<init>(Lnet/minecraft/class_1299;Ljava/util/UUID;Lnet/minecraft/class_2561;)V
      named <init> Lnet/minecraft/text/HoverEvent$EntityContent;<init>(Lnet/minecraft/entity/EntityType;Ljava/util/UUID;Lnet/minecraft/text/Text;)V
  • Method Details

    • parse

      @Nullable public static HoverEvent.EntityContent parse​(JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official a Lom$b;a(Lcom/google/gson/JsonElement;)Lom$b;
      intermediary method_27680 Lnet/minecraft/class_2568$class_5248;method_27680(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2568$class_5248;
      named parse Lnet/minecraft/text/HoverEvent$EntityContent;parse(Lcom/google/gson/JsonElement;)Lnet/minecraft/text/HoverEvent$EntityContent;
    • parse

      @Nullable public static HoverEvent.EntityContent parse​(Text text)
      Mappings:
      Namespace Name Mixin selector
      official a Lom$b;a(Loi;)Lom$b;
      intermediary method_27681 Lnet/minecraft/class_2568$class_5248;method_27681(Lnet/minecraft/class_2561;)Lnet/minecraft/class_2568$class_5248;
      named parse Lnet/minecraft/text/HoverEvent$EntityContent;parse(Lnet/minecraft/text/Text;)Lnet/minecraft/text/HoverEvent$EntityContent;
    • toJson

      public JsonElement toJson()
      Mappings:
      Namespace Name Mixin selector
      official a Lom$b;a()Lcom/google/gson/JsonElement;
      intermediary method_27679 Lnet/minecraft/class_2568$class_5248;method_27679()Lcom/google/gson/JsonElement;
      named toJson Lnet/minecraft/text/HoverEvent$EntityContent;toJson()Lcom/google/gson/JsonElement;
    • asTooltip

      @Environment(CLIENT) public List<Text> asTooltip()
      Mappings:
      Namespace Name Mixin selector
      official b Lom$b;b()Ljava/util/List;
      intermediary method_27682 Lnet/minecraft/class_2568$class_5248;method_27682()Ljava/util/List;
      named asTooltip Lnet/minecraft/text/HoverEvent$EntityContent;asTooltip()Ljava/util/List;
    • equals

      public boolean equals​(Object object)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lom$b;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_2568$class_5248;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/text/HoverEvent$EntityContent;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Mappings:
      Namespace Name Mixin selector
      official hashCode Lom$b;hashCode()I
      intermediary hashCode Lnet/minecraft/class_2568$class_5248;hashCode()I
      named hashCode Lnet/minecraft/text/HoverEvent$EntityContent;hashCode()I