Class Entity
java.lang.Object
net.md_5.bungee.api.chat.hover.content.Content
net.md_5.bungee.api.chat.hover.content.Entity
-
Constructor Summary
ConstructorsConstructorDescriptionEntity(String type, @NonNull String id, BaseComponent name) Required for backwards compatibility.Entity(String type, @NonNull String id, BaseComponent name, boolean v1_21_5) Creates a newEntityinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull StringgetId()Entity UUID in hyphenated hexadecimal format.getName()Name to display as the entity.getType()Namespaced entity ID.inthashCode()booleanTrue if this entity is for 1.21.5 or laterRequired action for this content type.voidEntity UUID in hyphenated hexadecimal format.voidsetName(BaseComponent name) Name to display as the entity.voidNamespaced entity ID.voidsetV1_21_5(boolean v1_21_5) True if this entity is for 1.21.5 or latertoString()Methods inherited from class net.md_5.bungee.api.chat.hover.content.Content
assertAction
-
Constructor Details
-
Entity
Required for backwards compatibility.- Parameters:
type- the type of the entity, for example 'minecraft:pig'id- for example '6cb1b229-ce5c-4179-af8d-eea185c25963'name- the name of the entity
-
Entity
Creates a newEntityinstance.- Parameters:
type- Namespaced entity ID. Will use 'minecraft:pig' if null.id- Entity UUID in hyphenated hexadecimal format. Should be valid UUID. TODO : validate?name- Name to display as the entity. This is optional and will be hidden if null.v1_21_5- True if this entity is for 1.21.5 or later
-
-
Method Details
-
requiredAction
Description copied from class:ContentRequired action for this content type.- Specified by:
requiredActionin classContent- Returns:
- action
-
getType
Namespaced entity ID. Will use 'minecraft:pig' if null. -
getId
Entity UUID in hyphenated hexadecimal format. Should be valid UUID. TODO : validate? -
getName
Name to display as the entity. This is optional and will be hidden if null. -
isV1_21_5
public boolean isV1_21_5()True if this entity is for 1.21.5 or later -
setType
Namespaced entity ID. Will use 'minecraft:pig' if null. -
setId
Entity UUID in hyphenated hexadecimal format. Should be valid UUID. TODO : validate? -
setName
Name to display as the entity. This is optional and will be hidden if null. -
setV1_21_5
public void setV1_21_5(boolean v1_21_5) True if this entity is for 1.21.5 or later -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-