public static class HoverEvent.EntityContent extends Object
Modifier and Type | Field and Description |
---|---|
EntityType<?> |
entityType |
Text |
name |
private List<Text> |
tooltip |
UUID |
uuid |
Constructor and Description |
---|
EntityContent(EntityType<?> entityType,
UUID uuid,
Text name) |
Modifier and Type | Method and Description |
---|---|
List<Text> |
asTooltip() |
boolean |
equals(Object object) |
int |
hashCode() |
static HoverEvent.EntityContent |
parse(JsonElement json) |
static HoverEvent.EntityContent |
parse(Text text) |
JsonElement |
toJson() |
public final EntityType<?> entityType
public final UUID uuid
public EntityContent(EntityType<?> entityType, UUID uuid, @Nullable Text name)
@Nullable public static HoverEvent.EntityContent parse(JsonElement json)
@Nullable public static HoverEvent.EntityContent parse(Text text)
public JsonElement toJson()