Interface LevelStem
- All Superinterfaces:
Keyed, Registerable<LevelStem>, Wrapper
@NullMarked
@AsOf("3.3.0")
public interface LevelStem
extends Wrapper, Keyed, Registerable<LevelStem>
Represents a level stem, which is a
Dimension with a specific ChunkGenerator.- Since:
- 3.3.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic LevelStem.Builderbuilder()Creates a new builder for a level stem.Gets the chunk generator of this level stem.static LevelStemReads a Minecraft level-stem holder or value.Gets the dimension type of this level stem.default DimensionGets the dimension type of this level stem.default ChunkGeneratorGets the chunk generator of this level stem.static LevelStemof(@Nullable ResourceKey resourceKey, Dimension dimension, ChunkGenerator chunkGenerator) Creates a new level stem with the given dimension type and chunk generator.static LevelStemof(Dimension dimension, ChunkGenerator chunkGenerator) Creates a new level stem with the given dimension type and chunk generator.Gets the resource key of this level stem, if it set.default LevelStem.BuilderConverts this object back to a builder.Methods inherited from interface Registerable
registerMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
resourceKey
Gets the resource key of this level stem, if it set.- Returns:
- an optional containing the resource key, or empty if not set
- Since:
- 3.3.0
-
dimension
-
dimensionType
-
chunkGenerator
Gets the chunk generator of this level stem.- Returns:
- the chunk generator
- Since:
- 3.3.0
-
generator
Gets the chunk generator of this level stem.- Returns:
- the chunk generator
- Since:
- 3.3.0
-
toBuilder
Converts this object back to a builder.- Returns:
- a builder with the same properties as this level stem
- Since:
- 3.3.0
-
of
@AsOf("3.3.0") static LevelStem of(@Nullable ResourceKey resourceKey, Dimension dimension, ChunkGenerator chunkGenerator) Creates a new level stem with the given dimension type and chunk generator.- Parameters:
resourceKey- the resource keydimension- the dimension typechunkGenerator- the chunk generator- Returns:
- a new level stem
- Since:
- 3.3.0
-
of
Creates a new level stem with the given dimension type and chunk generator.- Parameters:
dimension- the dimension typechunkGenerator- the chunk generator- Returns:
- a new level stem
- Since:
- 3.3.0
-
decode
-
builder
Creates a new builder for a level stem.- Returns:
- a new builder
- Since:
- 3.3.0
-