Enum Class DefaultFontInfo
- All Implemented Interfaces:
Serializable
,Comparable<DefaultFontInfo>
,Constable
Contains width of characters in the chat with default font.
Original code form https://www.spigotmc.org/threads/free-code-sending-perfectly-centered-chat-message.95872/page-2
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionint
char
static DefaultFontInfo
getDefaultFontInfo(char c)
int
static DefaultFontInfo
Returns the enum constant of this class with the specified name.static DefaultFontInfo[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
A
-
a
-
B
-
b
-
C
-
c
-
D
-
d
-
E
-
e
-
F
-
f
-
G
-
g
-
H
-
h
-
I
-
i
-
J
-
j
-
K
-
k
-
L
-
l
-
M
-
m
-
N
-
n
-
O
-
o
-
P
-
p
-
Q
-
q
-
R
-
r
-
S
-
s
-
T
-
t
-
U
-
u
-
V
-
v
-
W
-
w
-
X
-
x
-
Y
-
y
-
Z
-
z
-
NUM_1
-
NUM_2
-
NUM_3
-
NUM_4
-
NUM_5
-
NUM_6
-
NUM_7
-
NUM_8
-
NUM_9
-
NUM_0
-
EXCLAMATION_POINT
-
AT_SYMBOL
-
NUM_SIGN
-
DOLLAR_SIGN
-
PERCENT
-
UP_ARROW
-
AMPERSAND
-
ASTERISK
-
LEFT_PARENTHESIS
-
RIGHT_PARENTHESIS
-
MINUS
-
UNDERSCORE
-
PLUS_SIGN
-
EQUALS_SIGN
-
LEFT_CURL_BRACE
-
RIGHT_CURL_BRACE
-
LEFT_BRACKET
-
RIGHT_BRACKET
-
COLON
-
SEMI_COLON
-
DOUBLE_QUOTE
-
SINGLE_QUOTE
-
LEFT_ARROW
-
RIGHT_ARROW
-
QUESTION_MARK
-
SLASH
-
BACK_SLASH
-
LINE
-
TILDE
-
TICK
-
PERIOD
-
COMMA
-
SPACE
-
DEFAULT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getDefaultFontInfo
-
getCharacter
public char getCharacter() -
getLength
public int getLength() -
getBoldLength
public int getBoldLength()
-