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
  • Method Details

    • resourceKey

      @AsOf("3.3.0") Optional<ResourceKey> 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

      @AsOf("3.3.0") Dimension dimension()
      Gets the dimension type of this level stem.
      Returns:
      the dimension type
      Since:
      3.3.0
    • dimensionType

      @AsOf("3.3.0") default Dimension dimensionType()
      Gets the dimension type of this level stem.
      Returns:
      the dimension type
      Since:
      3.3.0
    • chunkGenerator

      @AsOf("3.3.0") ChunkGenerator chunkGenerator()
      Gets the chunk generator of this level stem.
      Returns:
      the chunk generator
      Since:
      3.3.0
    • generator

      @AsOf("3.3.0") default ChunkGenerator generator()
      Gets the chunk generator of this level stem.
      Returns:
      the chunk generator
      Since:
      3.3.0
    • toBuilder

      @AsOf("3.3.0") default LevelStem.Builder 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 key
      dimension - the dimension type
      chunkGenerator - the chunk generator
      Returns:
      a new level stem
      Since:
      3.3.0
    • of

      @AsOf("3.3.0") static LevelStem of(Dimension dimension, ChunkGenerator chunkGenerator)
      Creates a new level stem with the given dimension type and chunk generator.
      Parameters:
      dimension - the dimension type
      chunkGenerator - the chunk generator
      Returns:
      a new level stem
      Since:
      3.3.0
    • decode

      @AsOf("3.3.0") static LevelStem decode(Object minecraftStem)
      Reads a Minecraft level-stem holder or value.
      Parameters:
      minecraftStem - the level-stem holder or value to read
      Returns:
      the decoded level stem
      Since:
      3.3.0
    • builder

      @AsOf("3.3.0") static LevelStem.Builder builder()
      Creates a new builder for a level stem.
      Returns:
      a new builder
      Since:
      3.3.0