Package net.minecraft.world.gen.feature
Enum OreFeatureConfig.Target
- All Implemented Interfaces:
Serializable,Comparable<OreFeatureConfig.Target>,java.lang.constant.Constable,StringIdentifiable
- Enclosing class:
- OreFeatureConfig
public static enum OreFeatureConfig.Target extends Enum<OreFeatureConfig.Target> implements StringIdentifiable
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description NATURAL_STONENETHER_ORE_REPLACEABLESNETHERRACK -
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<OreFeatureConfig.Target>field_24898private Stringnameprivate static Map<String,OreFeatureConfig.Target>nameMapprivate Predicate<BlockState>predicate -
Constructor Summary
Constructors Modifier Constructor Description privateTarget(String name, Predicate<BlockState> predicate) -
Method Summary
Modifier and Type Method Description StringasString()static OreFeatureConfig.TargetbyName(String name)Predicate<BlockState>getCondition()StringgetName()static OreFeatureConfig.TargetvalueOf(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.
-
Enum Constant Details
-
Field Details
-
Constructor Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
-
byName
-
getCondition
-
asString
- Specified by:
asStringin interfaceStringIdentifiable
-