public static class HoverEvent.ContentEntity extends HoverEvent.Content
| Modifier and Type | Class and Description |
|---|---|
static class |
HoverEvent.ContentEntity.Serializer |
| Constructor and Description |
|---|
ContentEntity() |
ContentEntity(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() |
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() |
public ContentEntity()
public ContentEntity(String type, @NonNull @NonNull String id, BaseComponent name)
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)
public String toString()
toString in class HoverEvent.Contentpublic boolean equals(Object o)
equals in class HoverEvent.Contentprotected boolean canEqual(Object other)
canEqual in class HoverEvent.Contentpublic int hashCode()
hashCode in class HoverEvent.ContentCopyright © 2015–2020 WaterfallMC. All rights reserved.