Package net.minecraft.world.gen
Enum Heightmap.Type
- java.lang.Object
-
- java.lang.Enum<Heightmap.Type>
-
- net.minecraft.world.gen.Heightmap.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Heightmap.Type>
,IStringSerializable
- Enclosing class:
- Heightmap
public static enum Heightmap.Type extends java.lang.Enum<Heightmap.Type> implements IStringSerializable
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MOTION_BLOCKING
MOTION_BLOCKING_NO_LEAVES
OCEAN_FLOOR
OCEAN_FLOOR_WG
WORLD_SURFACE
WORLD_SURFACE_WG
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<Heightmap.Type>
CODEC
private java.util.function.Predicate<BlockState>
isOpaque
private static java.util.Map<java.lang.String,Heightmap.Type>
REVERSE_LOOKUP
private java.lang.String
serializationKey
private Heightmap.Usage
usage
-
Constructor Summary
Constructors Modifier Constructor Description private
Type(java.lang.String p_i50821_3_, Heightmap.Usage p_i50821_4_, java.util.function.Predicate<BlockState> p_i50821_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Heightmap.Type
getFromKey(java.lang.String p_203501_0_)
java.lang.String
getSerializationKey()
java.lang.String
getSerializedName()
java.util.function.Predicate<BlockState>
isOpaque()
boolean
keepAfterWorldgen()
boolean
sendToClient()
static Heightmap.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Heightmap.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WORLD_SURFACE_WG
public static final Heightmap.Type WORLD_SURFACE_WG
-
WORLD_SURFACE
public static final Heightmap.Type WORLD_SURFACE
-
OCEAN_FLOOR_WG
public static final Heightmap.Type OCEAN_FLOOR_WG
-
OCEAN_FLOOR
public static final Heightmap.Type OCEAN_FLOOR
-
MOTION_BLOCKING
public static final Heightmap.Type MOTION_BLOCKING
-
MOTION_BLOCKING_NO_LEAVES
public static final Heightmap.Type MOTION_BLOCKING_NO_LEAVES
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<Heightmap.Type> CODEC
-
serializationKey
private final java.lang.String serializationKey
-
usage
private final Heightmap.Usage usage
-
isOpaque
private final java.util.function.Predicate<BlockState> isOpaque
-
REVERSE_LOOKUP
private static final java.util.Map<java.lang.String,Heightmap.Type> REVERSE_LOOKUP
-
-
Constructor Detail
-
Type
private Type(java.lang.String p_i50821_3_, Heightmap.Usage p_i50821_4_, java.util.function.Predicate<BlockState> p_i50821_5_)
-
-
Method Detail
-
values
public static Heightmap.Type[] 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 (Heightmap.Type c : Heightmap.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Heightmap.Type 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
-
getSerializationKey
public java.lang.String getSerializationKey()
-
sendToClient
public boolean sendToClient()
-
keepAfterWorldgen
public boolean keepAfterWorldgen()
-
getFromKey
@Nullable public static Heightmap.Type getFromKey(java.lang.String p_203501_0_)
-
isOpaque
public java.util.function.Predicate<BlockState> isOpaque()
-
getSerializedName
public java.lang.String getSerializedName()
- Specified by:
getSerializedName
in interfaceIStringSerializable
-
-