Class HoverEvent.EntityContent

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

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

    • CODEC

      public static final com.mojang.serialization.Codec<HoverEvent.EntityContent> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/text/HoverEvent$EntityContent;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_46607 Lnet/minecraft/class_2568$class_5248;field_46607:Lcom/mojang/serialization/Codec;
      official a Lyb$b;a:Lcom/mojang/serialization/Codec;
    • entityType

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

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

      public final Optional<Text> name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/text/HoverEvent$EntityContent;name:Ljava/util/Optional;
      intermediary field_24353 Lnet/minecraft/class_2568$class_5248;field_24353:Ljava/util/Optional;
      official d Lyb$b;d:Ljava/util/Optional;
    • tooltip

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

    • EntityContent

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

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

    • legacySerializer

      public static com.mojang.serialization.DataResult<HoverEvent.EntityContent> legacySerializer(Text text, @Nullable @Nullable RegistryOps<?> ops)
      Mappings:
      Namespace Name Mixin selector
      named legacySerializer Lnet/minecraft/text/HoverEvent$EntityContent;legacySerializer(Lnet/minecraft/text/Text;Lnet/minecraft/registry/RegistryOps;)Lcom/mojang/serialization/DataResult;
      intermediary method_54195 Lnet/minecraft/class_2568$class_5248;method_54195(Lnet/minecraft/class_2561;Lnet/minecraft/class_6903;)Lcom/mojang/serialization/DataResult;
      official a Lyb$b;a(Lxv;Lalx;)Lcom/mojang/serialization/DataResult;
    • asTooltip

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object