public class Entity extends Content
Constructor and Description |
---|
Entity(String type,
@NonNull String id,
BaseComponent name) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
@NonNull String |
getId()
Entity UUID in hyphenated hexadecimal format.
|
BaseComponent |
getName()
Name to display as the entity.
|
String |
getType()
Namespaced entity ID.
|
int |
hashCode() |
HoverEvent.Action |
requiredAction()
Required action for this content type.
|
void |
setId(@NonNull String id)
Entity UUID in hyphenated hexadecimal format.
|
void |
setName(BaseComponent name)
Name to display as the entity.
|
void |
setType(String type)
Namespaced entity ID.
|
String |
toString() |
assertAction
public Entity(String type, @NonNull @NonNull String id, BaseComponent name)
public HoverEvent.Action requiredAction()
Content
requiredAction
in class Content
public String getType()
@NonNull public @NonNull String getId()
public BaseComponent getName()
public void setType(String type)
public void setId(@NonNull @NonNull String id)
public void setName(BaseComponent name)
Copyright © 2012–2020 SpigotMC. All rights reserved.