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 tb$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 Ltb$b;a:Lbfl;
      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 Ltb$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 @Nullable Text name
      Mappings:
      Namespace Name Mixin selector
      official c Ltb$b;c:Lsw;
      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

      @Nullable private @Nullable List<Text> tooltip
      Mappings:
      Namespace Name Mixin selector
      official d Ltb$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 @Nullable Text name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ltb$b;<init>(Lbfl;Ljava/util/UUID;Lsw;)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

      Mappings:
      Namespace Name Mixin selector
      official a Ltb$b;a(Lcom/google/gson/JsonElement;)Ltb$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 @Nullable HoverEvent.EntityContent parse(Text text)
      Mappings:
      Namespace Name Mixin selector
      official a Ltb$b;a(Lsw;)Ltb$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 Ltb$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

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