public static enum Heightmap.Type extends Enum<Heightmap.Type> implements StringIdentifiable
Enum Constant and Description |
---|
MOTION_BLOCKING |
MOTION_BLOCKING_NO_LEAVES |
OCEAN_FLOOR |
OCEAN_FLOOR_WG |
WORLD_SURFACE |
WORLD_SURFACE_WG |
Modifier and Type | Field and Description |
---|---|
private Predicate<BlockState> |
blockPredicate |
private static Map<String,Heightmap.Type> |
BY_NAME |
static com.mojang.serialization.Codec<Heightmap.Type> |
CODEC |
private String |
name |
private Heightmap.Purpose |
purpose |
Modifier and Type | Method and Description |
---|---|
String |
asString() |
static Heightmap.Type |
byName(String name) |
Predicate<BlockState> |
getBlockPredicate() |
String |
getName() |
boolean |
isStoredServerSide() |
boolean |
shouldSendToClient() |
static Heightmap.Type |
valueOf(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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
createCodec, createCodec, method_28142
public static final Heightmap.Type WORLD_SURFACE_WG
public static final Heightmap.Type WORLD_SURFACE
public static final Heightmap.Type OCEAN_FLOOR_WG
public static final Heightmap.Type OCEAN_FLOOR
public static final Heightmap.Type MOTION_BLOCKING
public static final Heightmap.Type MOTION_BLOCKING_NO_LEAVES
public static final com.mojang.serialization.Codec<Heightmap.Type> CODEC
private static final Map<String,Heightmap.Type> BY_NAME
private final String name
private final Heightmap.Purpose purpose
private final Predicate<BlockState> blockPredicate
public static Heightmap.Type[] values()
for (Heightmap.Type c : Heightmap.Type.values()) System.out.println(c);
public static Heightmap.Type 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 boolean shouldSendToClient()
@Environment(value=CLIENT) public boolean isStoredServerSide()
@Nullable public static Heightmap.Type byName(String name)
public Predicate<BlockState> getBlockPredicate()
public String asString()
asString
in interface StringIdentifiable