public static enum Platform.Capability extends java.lang.Enum<Platform.Capability>
Enum Constant and Description |
---|
BIOMES
Has the concept of a 2D, per-column biome, identified by a number.
|
BIOMES_3D
Has the concept of a 3D, per-4x4x4-cube biome, identified by a number.
|
BLOCK_BASED
This is a Minecraft-like block based platform, based an a 3D map
made up of large cube-shaped voxels.
|
BLOCK_MINECRAFT_LIGHT
Supports the
minecraft:light block. |
DATA_PACKS
Supports Minecraft-style data packs.
|
GENERATOR_PER_DIMENSION
Supports generator settings per dimension.
|
LEAF_DISTANCES
*_leaves blocks have a distance property from 1 to 7, indicating the distance from the tree
trunk, where 7 means it is too far away and will decay. |
NAME_BASED
The platform uses named blocks rather than numerical IDs.
|
NAMED_BIOMES
Has the concept of named, namespaced biomes, stored per 4x4x4 cube of blocks (like
BIOMES_3D ,
identified by a string. |
POPULATE
The platform supports the "populate" flag to indicate that chunks
should be populated by the game according to the biome painted in
WorldPainter.
|
PRECALCULATED_LIGHT
Stores precalculated light values, so a lighting pass is needed.
|
SEED
The platform uses a numerical world seed to procedurally generate
deterministic maps.
|
SET_SPAWN_POINT
Can set the location where the player will initially spawn.
|
WATERLOGGED_LEAVES
Leaf blocks have a
waterlogged property and can therefore be placed in water. |
Modifier and Type | Method and Description |
---|---|
static Platform.Capability |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Platform.Capability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Platform.Capability BIOMES
BIOMES_3D
and NAMED_BIOMES
. Note that the biomes may still be stored as 4x4x4 3D biomes (as
Minecraft 1.15 does). This will be determined per chunk based on the chunk capabilities (and can therefore
vary by chunk). But in-game the biome will still be the same throughout every vertical column.public static final Platform.Capability PRECALCULATED_LIGHT
public static final Platform.Capability SET_SPAWN_POINT
public static final Platform.Capability BLOCK_BASED
public static final Platform.Capability NAME_BASED
public static final Platform.Capability SEED
public static final Platform.Capability POPULATE
public static final Platform.Capability BIOMES_3D
BIOMES
and NAMED_BIOMES
.public static final Platform.Capability NAMED_BIOMES
public static final Platform.Capability GENERATOR_PER_DIMENSION
DIM_NORMAL
.public static final Platform.Capability LEAF_DISTANCES
*_leaves
blocks have a distance
property from 1 to 7, indicating the distance from the tree
trunk, where 7 means it is too far away and will decay.public static final Platform.Capability WATERLOGGED_LEAVES
waterlogged
property and can therefore be placed in water.public static final Platform.Capability DATA_PACKS
public static final Platform.Capability BLOCK_MINECRAFT_LIGHT
minecraft:light
block.public static Platform.Capability[] values()
for (Platform.Capability c : Platform.Capability.values()) System.out.println(c);
public static Platform.Capability 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 null