public static enum Heightmap.Type extends java.lang.Enum<Heightmap.Type>
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 static java.util.Map<java.lang.String,Heightmap.Type> |
BY_ID |
private java.util.function.Predicate<BlockState> |
heightLimitPredicate |
private java.lang.String |
id |
private Heightmap.Usage |
usage |
Modifier and Type | Method and Description |
---|---|
java.util.function.Predicate<BlockState> |
getHeightLimitPredicate() |
java.lang.String |
getId() |
static Heightmap.Type |
getTypeFromId(java.lang.String idIn) |
boolean |
isUsageClient() |
boolean |
isUsageNotWorldgen() |
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.
|
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
private final java.lang.String id
private final Heightmap.Usage usage
private final java.util.function.Predicate<BlockState> heightLimitPredicate
private static final java.util.Map<java.lang.String,Heightmap.Type> BY_ID
public static Heightmap.Type[] values()
for (Heightmap.Type c : Heightmap.Type.values()) System.out.println(c);
public static Heightmap.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getId()
public boolean isUsageClient()
public boolean isUsageNotWorldgen()
public static Heightmap.Type getTypeFromId(java.lang.String idIn)
public java.util.function.Predicate<BlockState> getHeightLimitPredicate()