public static final class HoverAction.ShowEntity.Ref extends Object implements Identifiable
| Modifier | Constructor and Description |
|---|---|
|
Ref(Entity entity,
String name)
Constructs a Ref, given an
Entity. |
|
Ref(UUID uuid,
String name)
Constructs a Ref to an entity.
|
|
Ref(UUID uuid,
String name,
EntityType type)
Constructs a Ref to an entity.
|
protected |
Ref(UUID uuid,
String name,
Optional<EntityType> type)
Constructs a Ref directly.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getName()
Retrieves the name that this
HoverAction.ShowEntity.Ref refers to. |
Optional<EntityType> |
getType()
Retrieves the type that this
HoverAction.ShowEntity.Ref refers to, if it exists. |
UUID |
getUniqueId()
Retrieves the UUID that this
HoverAction.ShowEntity.Ref refers to. |
int |
hashCode() |
String |
toString() |
public Ref(UUID uuid, String name, @Nullable EntityType type)
uuid - The UUID of the entityname - The name of the entitytype - The type of the entitypublic Ref(UUID uuid, String name)
uuid - The UUID of the entityname - The name of the entitypublic Ref(Entity entity, String name)
Entity.entity - The entityname - The name of the entityprotected Ref(UUID uuid, String name, Optional<EntityType> type)
uuid - The UUIDname - The nametype - The typepublic UUID getUniqueId()
HoverAction.ShowEntity.Ref refers to.getUniqueId in interface Identifiablepublic String getName()
HoverAction.ShowEntity.Ref refers to.public Optional<EntityType> getType()
HoverAction.ShowEntity.Ref refers to, if it exists.Optional.empty()