Package net.minecraft.util.text.event
Class HoverEvent.EntityHover
- java.lang.Object
-
- net.minecraft.util.text.event.HoverEvent.EntityHover
-
- Enclosing class:
- HoverEvent
public static class HoverEvent.EntityHover extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.util.UUID
id
private java.util.List<ITextComponent>
linesCache
ITextComponent
name
EntityType<?>
type
-
Constructor Summary
Constructors Constructor Description EntityHover(EntityType<?> p_i232566_1_, java.util.UUID p_i232566_2_, ITextComponent p_i232566_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HoverEvent.EntityHover
create(com.google.gson.JsonElement p_240682_0_)
static HoverEvent.EntityHover
create(ITextComponent p_240683_0_)
boolean
equals(java.lang.Object p_equals_1_)
java.util.List<ITextComponent>
getTooltipLines()
int
hashCode()
com.google.gson.JsonElement
serialize()
-
-
-
Field Detail
-
type
public final EntityType<?> type
-
id
public final java.util.UUID id
-
name
@Nullable public final ITextComponent name
-
linesCache
@Nullable private java.util.List<ITextComponent> linesCache
-
-
Constructor Detail
-
EntityHover
public EntityHover(EntityType<?> p_i232566_1_, java.util.UUID p_i232566_2_, @Nullable ITextComponent p_i232566_3_)
-
-
Method Detail
-
create
@Nullable public static HoverEvent.EntityHover create(com.google.gson.JsonElement p_240682_0_)
-
create
@Nullable public static HoverEvent.EntityHover create(ITextComponent p_240683_0_)
-
serialize
public com.google.gson.JsonElement serialize()
-
getTooltipLines
public java.util.List<ITextComponent> getTooltipLines()
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-