public static enum OreFeatureConfig.Target extends Enum<OreFeatureConfig.Target>
Enum Constant and Description |
---|
NATURAL_STONE |
NETHERRACK |
Modifier and Type | Field and Description |
---|---|
private String |
name |
private static Map<String,OreFeatureConfig.Target> |
nameMap |
private Predicate<BlockState> |
predicate |
Modifier and Type | Method and Description |
---|---|
static OreFeatureConfig.Target |
byName(String name) |
Predicate<BlockState> |
getCondition() |
String |
getName() |
static OreFeatureConfig.Target |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OreFeatureConfig.Target[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OreFeatureConfig.Target NATURAL_STONE
public static final OreFeatureConfig.Target NETHERRACK
private static final Map<String,OreFeatureConfig.Target> nameMap
private final String name
private final Predicate<BlockState> predicate
public static OreFeatureConfig.Target[] values()
for (OreFeatureConfig.Target c : OreFeatureConfig.Target.values()) System.out.println(c);
public static OreFeatureConfig.Target 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 OreFeatureConfig.Target byName(String name)
public Predicate<BlockState> getCondition()