public static interface BookUtil.HoverAction
| Modifier and Type | Interface and Description |
|---|---|
static class |
BookUtil.HoverAction.SimpleHoverAction |
| Modifier and Type | Method and Description |
|---|---|
net.md_5.bungee.api.chat.HoverEvent.Action |
action()
Get the Chat-Component action
|
static BookUtil.HoverAction |
showAchievement(org.bukkit.Achievement achievement)
Creates a show_achievement action: when the component is hovered the achievement information will be displayed
|
static BookUtil.HoverAction |
showAchievement(String achievementId)
Creates a show_achievement action: when the component is hovered the achievement information will be displayed
|
static BookUtil.HoverAction |
showEntity(net.md_5.bungee.api.chat.BaseComponent... entity)
Creates a show_entity action: when the component is hovered some entity information will be displayed
|
static BookUtil.HoverAction |
showEntity(org.bukkit.entity.Entity entity)
Creates a show_entity action: when the component is hovered some entity information will be displayed
|
static BookUtil.HoverAction |
showEntity(UUID uuid,
String type,
String name)
Creates a show_entity action: when the component is hovered some entity information will be displayed
|
static BookUtil.HoverAction |
showItem(net.md_5.bungee.api.chat.BaseComponent... item)
Creates a show_item action: when the component is hovered some item information will be displayed
|
static BookUtil.HoverAction |
showItem(org.bukkit.inventory.ItemStack item)
Creates a show_item action: when the component is hovered some item information will be displayed
|
static BookUtil.HoverAction |
showStatistic(String statisticId)
Creates a show_achievement action: when the component is hovered the statistic information will be displayed
|
static BookUtil.HoverAction |
showText(net.md_5.bungee.api.chat.BaseComponent... text)
Creates a show_text action: when the component is hovered the text used as parameter will be displayed
|
static BookUtil.HoverAction |
showText(String text)
Creates a show_text action: when the component is hovered the text used as parameter will be displayed
|
net.md_5.bungee.api.chat.BaseComponent[] |
value()
The value paired to the action
|
net.md_5.bungee.api.chat.HoverEvent.Action action()
net.md_5.bungee.api.chat.BaseComponent[] value()
static BookUtil.HoverAction showText(net.md_5.bungee.api.chat.BaseComponent... text)
text - the text to displaystatic BookUtil.HoverAction showText(String text)
text - the text to displaystatic BookUtil.HoverAction showItem(net.md_5.bungee.api.chat.BaseComponent... item)
item - a component array representing item to displaystatic BookUtil.HoverAction showItem(org.bukkit.inventory.ItemStack item)
item - the item to displaystatic BookUtil.HoverAction showEntity(net.md_5.bungee.api.chat.BaseComponent... entity)
entity - a component array representing the item to displaystatic BookUtil.HoverAction showEntity(UUID uuid, String type, String name)
uuid - the entity's UniqueIdtype - the entity's typename - the entity's namestatic BookUtil.HoverAction showEntity(org.bukkit.entity.Entity entity)
entity - the item to displaystatic BookUtil.HoverAction showAchievement(String achievementId)
achievementId - the id of the achievement to displaystatic BookUtil.HoverAction showAchievement(org.bukkit.Achievement achievement)
achievement - the achievement to displaystatic BookUtil.HoverAction showStatistic(String statisticId)
statisticId - the id of the statistic to displayCopyright © 2017. All rights reserved.