Package net.minecraft.world.biome
Enum Biome.Category
- java.lang.Object
-
- java.lang.Enum<Biome.Category>
-
- net.minecraft.world.biome.Biome.Category
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Biome.Category>
,IStringSerializable
- Enclosing class:
- Biome
public static enum Biome.Category extends java.lang.Enum<Biome.Category> implements IStringSerializable
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.String,Biome.Category>
BY_NAME
static com.mojang.serialization.Codec<Biome.Category>
CODEC
private java.lang.String
name
-
Constructor Summary
Constructors Modifier Constructor Description private
Category(java.lang.String p_i50595_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Biome.Category
byName(java.lang.String p_235103_0_)
java.lang.String
getName()
java.lang.String
getSerializedName()
static Biome.Category
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Biome.Category[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Biome.Category NONE
-
TAIGA
public static final Biome.Category TAIGA
-
EXTREME_HILLS
public static final Biome.Category EXTREME_HILLS
-
JUNGLE
public static final Biome.Category JUNGLE
-
MESA
public static final Biome.Category MESA
-
PLAINS
public static final Biome.Category PLAINS
-
SAVANNA
public static final Biome.Category SAVANNA
-
ICY
public static final Biome.Category ICY
-
THEEND
public static final Biome.Category THEEND
-
BEACH
public static final Biome.Category BEACH
-
FOREST
public static final Biome.Category FOREST
-
OCEAN
public static final Biome.Category OCEAN
-
DESERT
public static final Biome.Category DESERT
-
RIVER
public static final Biome.Category RIVER
-
SWAMP
public static final Biome.Category SWAMP
-
MUSHROOM
public static final Biome.Category MUSHROOM
-
NETHER
public static final Biome.Category NETHER
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<Biome.Category> CODEC
-
BY_NAME
private static final java.util.Map<java.lang.String,Biome.Category> BY_NAME
-
name
private final java.lang.String name
-
-
Method Detail
-
values
public static Biome.Category[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Biome.Category c : Biome.Category.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Biome.Category valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getName
public java.lang.String getName()
-
byName
public static Biome.Category byName(java.lang.String p_235103_0_)
-
getSerializedName
public java.lang.String getSerializedName()
- Specified by:
getSerializedName
in interfaceIStringSerializable
-
-