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 vl$b
intermediary net/minecraft/class_2568$class_5248
named net/minecraft/text/HoverEvent$EntityContent
  • Field Details

    • CODEC

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

      public final EntityType<?> entityType
      Mappings:
      Namespace Name Mixin selector
      official b Lvl$b;b:Lblz;
      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 c Lvl$b;c: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

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

      @Nullable private @Nullable List<Text> tooltip
      Mappings:
      Namespace Name Mixin selector
      official e Lvl$b;e: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 @Nullable Text name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lvl$b;<init>(Lblz;Ljava/util/UUID;Lvf;)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
    • EntityContent

      public EntityContent(EntityType<?> entityType, UUID uuid, Optional<Text> name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lvl$b;<init>(Lblz;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
      named <init> Lnet/minecraft/text/HoverEvent$EntityContent;<init>(Lnet/minecraft/entity/EntityType;Ljava/util/UUID;Ljava/util/Optional;)V
  • Method Details

    • legacySerializer

      public static com.mojang.serialization.DataResult<HoverEvent.EntityContent> legacySerializer(Text text)
      Mappings:
      Namespace Name Mixin selector
      official a Lvl$b;a(Lvf;)Lcom/mojang/serialization/DataResult;
      intermediary method_54195 Lnet/minecraft/class_2568$class_5248;method_54195(Lnet/minecraft/class_2561;)Lcom/mojang/serialization/DataResult;
      named legacySerializer Lnet/minecraft/text/HoverEvent$EntityContent;legacySerializer(Lnet/minecraft/text/Text;)Lcom/mojang/serialization/DataResult;
    • asTooltip

      public List<Text> asTooltip()
      Mappings:
      Namespace Name Mixin selector
      official a Lvl$b;a()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 o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lvl$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