public enum GoldenApple extends Enum<GoldenApple> implements Metadata
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEnchanted() |
String |
toString() |
static GoldenApple |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GoldenApple[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GoldenApple REGULAR
public static final GoldenApple ENCHANTED
public static GoldenApple[] values()
for (GoldenApple c : GoldenApple.values()) System.out.println(c);
public static GoldenApple 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 final boolean isEnchanted()
public String toString()
toString in class Enum<GoldenApple>Copyright © 2017–2019 NukkitX. All rights reserved.