public enum MessageFlag extends Enum<MessageFlag>
| Enum Constant and Description |
|---|
ACTION_BAR
This flag allows to display action bar messages.
|
BOSSBAR
This flag allows to display bossbar messages.
|
CHAT
This flag allows to send chat messages.
|
JSON
This flag allows to send vanilla JSON messages.
|
TITLE
This flag allows to display title messages.
|
WEBHOOK
This flag allows to send webhooks.
|
| Modifier and Type | Method and Description |
|---|---|
static MessageFlag |
from(String string) |
String |
getName() |
static MessageFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageFlag ACTION_BAR
public static final MessageFlag CHAT
public static final MessageFlag BOSSBAR
public static final MessageFlag JSON
public static final MessageFlag WEBHOOK
public static final MessageFlag TITLE
public static MessageFlag[] values()
for (MessageFlag c : MessageFlag.values()) System.out.println(c);
public static MessageFlag valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getName()
public static MessageFlag from(String string)
Copyright © 2023. All rights reserved.