public static enum AnnoyingMessage.BroadcastType extends java.lang.Enum<AnnoyingMessage.BroadcastType>
AnnoyingMessage| Enum Constant and Description |
|---|
ACTIONBAR
Message will be displayed in the action bar
|
CHAT
Message will be sent in chat
|
FULL_TITLE
Only use this if the key has 2 children, "title" and "subtitle"
|
SUBTITLE
Message will be sent as a subtitle
|
TITLE
Message will be sent as a title
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTitle()
Whether the broadcast type is a title (
TITLE, SUBTITLE, or FULL_TITLE), aka anything that has a fadeIn, stay, and fadeOut |
static AnnoyingMessage.BroadcastType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AnnoyingMessage.BroadcastType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnnoyingMessage.BroadcastType CHAT
public static final AnnoyingMessage.BroadcastType ACTIONBAR
public static final AnnoyingMessage.BroadcastType TITLE
public static final AnnoyingMessage.BroadcastType SUBTITLE
public static final AnnoyingMessage.BroadcastType FULL_TITLE
The "title" child will be sent as the title and the "subtitle" child will be sent as the subtitle
public static AnnoyingMessage.BroadcastType[] values()
for (AnnoyingMessage.BroadcastType c : AnnoyingMessage.BroadcastType.values()) System.out.println(c);
public static AnnoyingMessage.BroadcastType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isTitle()
TITLE, SUBTITLE, or FULL_TITLE), aka anything that has a fadeIn, stay, and fadeOut