Package net.minecraft.world.gen
Enum Class Heightmap.Type
- All Implemented Interfaces:
Serializable
,Comparable<Heightmap.Type>
,Constable
,IStringSerializable
- Enclosing class:
- Heightmap
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Heightmap.Type>
private final Predicate<BlockState>
private static final Map<String,
Heightmap.Type> private final String
private final Heightmap.Usage
-
Constructor Summary
ModifierConstructorDescriptionprivate
Type
(String p_i50821_3_, Heightmap.Usage p_i50821_4_, Predicate<BlockState> p_i50821_5_) -
Method Summary
Modifier and TypeMethodDescriptionstatic Heightmap.Type
getFromKey
(String p_203501_0_) isOpaque()
boolean
boolean
static Heightmap.Type
Returns the enum constant of this class with the specified name.static Heightmap.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WORLD_SURFACE_WG
-
WORLD_SURFACE
-
OCEAN_FLOOR_WG
-
OCEAN_FLOOR
-
MOTION_BLOCKING
-
MOTION_BLOCKING_NO_LEAVES
-
-
Field Details
-
CODEC
-
serializationKey
-
usage
-
isOpaque
-
REVERSE_LOOKUP
-
-
Constructor Details
-
Type
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getSerializationKey
-
sendToClient
public boolean sendToClient() -
keepAfterWorldgen
public boolean keepAfterWorldgen() -
getFromKey
-
isOpaque
-
getSerializedName
- Specified by:
getSerializedName
in interfaceIStringSerializable
-