Class Entity
- java.lang.Object
-
- net.md_5.bungee.api.chat.hover.content.Content
-
- net.md_5.bungee.api.chat.hover.content.Entity
-
public class Entity extends Content
-
-
Constructor Summary
Constructors Constructor Description Entity(String type, @NonNull String id, BaseComponent name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)@NonNull StringgetId()Entity UUID in hyphenated hexadecimal format.BaseComponentgetName()Name to display as the entity.StringgetType()Namespaced entity ID.inthashCode()HoverEvent.ActionrequiredAction()Required action for this content type.voidsetId(@NonNull String id)Entity UUID in hyphenated hexadecimal format.voidsetName(BaseComponent name)Name to display as the entity.voidsetType(String type)Namespaced entity ID.StringtoString()-
Methods inherited from class net.md_5.bungee.api.chat.hover.content.Content
assertAction
-
-
-
-
Constructor Detail
-
Entity
public Entity(String type, @NonNull @NonNull String id, BaseComponent name)
-
-
Method Detail
-
requiredAction
public HoverEvent.Action requiredAction()
Description copied from class:ContentRequired action for this content type.- Specified by:
requiredActionin classContent- Returns:
- action
-
getType
public String getType()
Namespaced entity ID. Will use 'minecraft:pig' if null.
-
getId
@NonNull public @NonNull String getId()
Entity UUID in hyphenated hexadecimal format. Should be valid UUID. TODO : validate?
-
getName
public BaseComponent getName()
Name to display as the entity. This is optional and will be hidden if null.
-
setType
public void setType(String type)
Namespaced entity ID. Will use 'minecraft:pig' if null.
-
setId
public void setId(@NonNull @NonNull String id)Entity UUID in hyphenated hexadecimal format. Should be valid UUID. TODO : validate?
-
setName
public void setName(BaseComponent name)
Name to display as the entity. This is optional and will be hidden if null.
-
-