public class UnicodeUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ICON_ANCHOR
An anchor icon in unicode.
|
static java.lang.String |
ICON_BULLET
A bullet icon in unicode.
|
static java.lang.String |
ICON_BULLSEYE
A bullseye icon in unicode.
|
static java.lang.String |
ICON_CARET
A caret icon in unicode.
|
static java.lang.String |
ICON_DEGREES
A degree icon in unicode.
|
static java.lang.String |
ICON_DIAMETER
A diameter icon in unicode.
|
static java.lang.String |
ICON_DIAMOND
A diamond icon in unicode.
|
static java.lang.String |
ICON_HEART
A heart icon in unicode.
|
static java.lang.String |
ICON_LIGHTNING
A lightning icon in unicode.
|
static java.lang.String |
ICON_PARAGRAPH
A paragraph icon in unicode.
|
static java.lang.String |
ICON_PICKAXE
A pickaxe icon in unicode.
|
static java.lang.String |
ICON_SHIELD
A shield icon in unicode.
|
static java.lang.String |
ICON_STAR
A star icon in unicode.
|
static java.lang.String |
ICON_SUN
A sun icon in unicode.
|
static java.lang.String |
ICON_SWORDS
A swords icon in unicode.
|
static java.lang.String |
ICON_ZERO_WIDTH_SPACE
A zero width space icon in unicode.
|
Constructor and Description |
---|
UnicodeUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
createProgressBar(double progress,
double goal,
int lines,
org.bukkit.ChatColor color)
Creates a progress bar, with a percentage display.
|
static void |
sendChatCommand(org.bukkit.entity.Player player,
java.lang.String command,
java.lang.String message,
boolean border)
Sends a clickable message to execute a command to a player.
|
static void |
sendChatHyperlink(org.bukkit.entity.Player player,
java.lang.String url,
java.lang.String message,
boolean border)
Sends a clickable message to open an url to a player.
|
static void |
shareChatItem(org.bukkit.inventory.ItemStack itemStack,
java.lang.String message)
Sends a hoverable message of an item stack to all players.
|
static java.util.List<java.lang.String> |
wrapText(java.lang.String text)
Wraps the given text, to be better displayable in lore.
|
public static final java.lang.String ICON_PARAGRAPH
public static final java.lang.String ICON_DEGREES
public static final java.lang.String ICON_CARET
public static final java.lang.String ICON_ZERO_WIDTH_SPACE
public static final java.lang.String ICON_BULLET
public static final java.lang.String ICON_DIAMETER
public static final java.lang.String ICON_BULLSEYE
public static final java.lang.String ICON_SUN
public static final java.lang.String ICON_DIAMOND
public static final java.lang.String ICON_ANCHOR
public static final java.lang.String ICON_SWORDS
public static final java.lang.String ICON_LIGHTNING
public static final java.lang.String ICON_PICKAXE
public static final java.lang.String ICON_SHIELD
public static final java.lang.String ICON_STAR
public static final java.lang.String ICON_HEART
public static java.util.List<java.lang.String> wrapText(java.lang.String text)
text
- The text to wrap.public static java.lang.String createProgressBar(double progress, double goal, int lines, org.bukkit.ChatColor color)
progress
- The current value.goal
- The maximum value.lines
- The amount of vertical lines, the bar consists of.color
- The color of the bar.public static void shareChatItem(org.bukkit.inventory.ItemStack itemStack, java.lang.String message)
itemStack
- The item stack that should be shown.message
- The message that should be shown.public static void sendChatCommand(org.bukkit.entity.Player player, java.lang.String command, java.lang.String message, boolean border)
player
- The player that should receive the message.command
- The command that should be executed on click.message
- The message that should be shown.border
- If the message has borders like this: ----------public static void sendChatHyperlink(org.bukkit.entity.Player player, java.lang.String url, java.lang.String message, boolean border)
player
- The player that should receive the message.url
- The url that should be opened on click.message
- The message that should be shown.border
- If the message has borders like this: ----------