public static enum ComponentBuilder.FormatRetention extends Enum<ComponentBuilder.FormatRetention>
Enum Constant and Description |
---|
ALL
Specify that we want to retain everything from the previous
component.
|
EVENTS
Specify that we want the events retained from the previous component.
|
FORMATTING
Specify that we want the formatting retained from the previous
component.
|
NONE
Specify that we do not want to retain anything from the previous
component.
|
Modifier and Type | Method and Description |
---|---|
static ComponentBuilder.FormatRetention |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComponentBuilder.FormatRetention[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComponentBuilder.FormatRetention NONE
public static final ComponentBuilder.FormatRetention FORMATTING
public static final ComponentBuilder.FormatRetention EVENTS
public static final ComponentBuilder.FormatRetention ALL
public static ComponentBuilder.FormatRetention[] values()
for (ComponentBuilder.FormatRetention c : ComponentBuilder.FormatRetention.values()) System.out.println(c);
public static ComponentBuilder.FormatRetention 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 nullCopyright © 2012–2020 SpigotMC. All rights reserved.