Class LevelCreatorImpl
java.lang.Object
dev.wyck.level.LevelCreatorImpl
- All Implemented Interfaces:
LevelCreator
@NullMarked
@AsOf("2.4.0")
@Internal
public final class LevelCreatorImpl
extends Object
implements LevelCreator
This implementation is here because it does not compile
against Minecraft internals as of right now.
Do not directly use this class, use
LevelCreator.-
Nested Class Summary
Nested classes/interfaces inherited from interface LevelCreator
LevelCreator.Builder -
Constructor Summary
ConstructorsConstructorDescriptionLevelCreatorImpl(ResourceKey levelKey, LevelStem levelStem, long seed, boolean generateStructures, boolean bonusChest, World.Environment environment, StemPersistence persistence, List<LevelSpawner> spawners, @Nullable String name, LevelType type) -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether to generate a bonus chest in the world.Converts thisLevelCreatorto aWorld.The environment of the world.booleanWhether to generate structures in the world.The level stem of the world.name()The name of the world.The persistence of the world.The key the world and its level stem are registered under.longseed()The seed to use for the world.spawners()The spawners of the world.toString()type()Used only to control client-sided behavior.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface LevelCreator
create, dimension, generator, toBuilder
-
Constructor Details
-
LevelCreatorImpl
public LevelCreatorImpl(ResourceKey levelKey, LevelStem levelStem, long seed, boolean generateStructures, boolean bonusChest, World.Environment environment, StemPersistence persistence, List<LevelSpawner> spawners, @Nullable String name, LevelType type)
-
-
Method Details
-
resourceKey
Description copied from interface:LevelCreatorThe key the world and its level stem are registered under.- Specified by:
resourceKeyin interfaceLevelCreator- Returns:
- the key the world and its level stem is registered under
-
levelStem
Description copied from interface:LevelCreatorThe level stem of the world.- Specified by:
levelStemin interfaceLevelCreator- Returns:
- the level stem of the world
-
seed
public long seed()Description copied from interface:LevelCreatorThe seed to use for the world.- Specified by:
seedin interfaceLevelCreator- Returns:
- the seed to use for the world.
-
generateStructures
public boolean generateStructures()Description copied from interface:LevelCreatorWhether to generate structures in the world.- Specified by:
generateStructuresin interfaceLevelCreator- Returns:
- whether to generate structures in the world.
-
bonusChest
public boolean bonusChest()Description copied from interface:LevelCreatorWhether to generate a bonus chest in the world.- Specified by:
bonusChestin interfaceLevelCreator- Returns:
- whether to generate a bonus chest in the world.
-
environment
Description copied from interface:LevelCreatorThe environment of the world.- Specified by:
environmentin interfaceLevelCreator- Returns:
- the environment of the world.
-
persistence
Description copied from interface:LevelCreatorThe persistence of the world.- Specified by:
persistencein interfaceLevelCreator- Returns:
- the persistence of the world.
-
spawners
Description copied from interface:LevelCreatorThe spawners of the world.- Specified by:
spawnersin interfaceLevelCreator- Returns:
- the spawners of the world.
-
name
Description copied from interface:LevelCreatorThe name of the world.- Specified by:
namein interfaceLevelCreator- Returns:
- the name of the world, as it appears in Bukkit.
-
type
Description copied from interface:LevelCreatorUsed only to control client-sided behavior. This enum has no representation of how a world actually behaves or is generated.- Specified by:
typein interfaceLevelCreator- Returns:
- the type of the world
-
bukkitWorld
Description copied from interface:LevelCreatorConverts thisLevelCreatorto aWorld.- Specified by:
bukkitWorldin interfaceLevelCreator- Returns:
- a
Worldequivalent to thisLevelCreator
-
toString
-