Class VoidChunkGenerator
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.generator.ChunkGenerator
ChunkGenerator.BiomeGrid, ChunkGenerator.ChunkData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateBedrock(@NotNull WorldInfo worldInfo, @NotNull Random random, int chunkX, int chunkZ, @NotNull ChunkGenerator.ChunkData chunkData) Shapes the Chunk bedrock layer for the given coordinates.booleanGets if the server should generate Vanilla caves.booleanGets if the server should generate Vanilla mobs after this ChunkGenerator.booleanGets if the server should generate Vanilla noise.booleanGets if the server should generate Vanilla structures after this ChunkGenerator.booleanGets if the server should generate Vanilla surface.Methods inherited from class org.bukkit.generator.ChunkGenerator
canSpawn, createChunkData, generateCaves, generateChunkData, generateNoise, generateSurface, getBaseHeight, getDefaultBiomeProvider, getDefaultPopulators, getFixedSpawnLocation, isParallelCapable, shouldGenerateBedrock, shouldGenerateCaves, shouldGenerateDecorations, shouldGenerateDecorations, shouldGenerateMobs, shouldGenerateNoise, shouldGenerateStructures, shouldGenerateSurface
-
Constructor Details
-
VoidChunkGenerator
public VoidChunkGenerator()
-
-
Method Details
-
generateBedrock
public void generateBedrock(@NotNull @NotNull WorldInfo worldInfo, @NotNull @NotNull Random random, int chunkX, int chunkZ, @NotNull @NotNull ChunkGenerator.ChunkData chunkData) Description copied from class:ChunkGeneratorShapes the Chunk bedrock layer for the given coordinates.Notes:
This method should never attempt to get the Chunk at the passed coordinates, as doing so may cause an infinite loop.
This method should never modify the
ChunkGenerator.ChunkDataat a later point of time.The Y-coordinate range should never be hardcoded, to get the Y-coordinate range use the methods
ChunkGenerator.ChunkData.getMinHeight()andChunkGenerator.ChunkData.getMaxHeight().- Overrides:
generateBedrockin classChunkGenerator- Parameters:
worldInfo- The world info of the world this chunk will be used forrandom- The random generator to usechunkX- The X-coordinate of the chunkchunkZ- The Z-coordinate of the chunkchunkData- To modify
-
shouldGenerateNoise
public boolean shouldGenerateNoise()Description copied from class:ChunkGeneratorGets if the server should generate Vanilla noise.The Vanilla noise is generated before
ChunkGenerator.generateNoise(WorldInfo, Random, int, int, ChunkData)is called.This is method is not called (and has therefore no effect), if
ChunkGenerator.shouldGenerateNoise(WorldInfo, Random, int, int)is overridden.- Overrides:
shouldGenerateNoisein classChunkGenerator- Returns:
- true if the server should generate Vanilla noise
- See Also:
-
shouldGenerateSurface
public boolean shouldGenerateSurface()Description copied from class:ChunkGeneratorGets if the server should generate Vanilla surface.The Vanilla surface is generated before
ChunkGenerator.generateSurface(WorldInfo, Random, int, int, ChunkData)is called.This is method is not called (and has therefore no effect), if
ChunkGenerator.shouldGenerateSurface(WorldInfo, Random, int, int)is overridden.- Overrides:
shouldGenerateSurfacein classChunkGenerator- Returns:
- true if the server should generate Vanilla surface
- See Also:
-
shouldGenerateCaves
public boolean shouldGenerateCaves()Description copied from class:ChunkGeneratorGets if the server should generate Vanilla caves.The Vanilla caves are generated before
ChunkGenerator.generateCaves(WorldInfo, Random, int, int, ChunkData)is called.This is method is not called (and has therefore no effect), if
ChunkGenerator.shouldGenerateCaves(WorldInfo, Random, int, int)is overridden.- Overrides:
shouldGenerateCavesin classChunkGenerator- Returns:
- true if the server should generate Vanilla caves
- See Also:
-
shouldGenerateMobs
public boolean shouldGenerateMobs()Description copied from class:ChunkGeneratorGets if the server should generate Vanilla mobs after this ChunkGenerator.This is method is not called (and has therefore no effect), if
ChunkGenerator.shouldGenerateMobs(WorldInfo, Random, int, int)is overridden.- Overrides:
shouldGenerateMobsin classChunkGenerator- Returns:
- true if the server should generate Vanilla mobs
- See Also:
-
shouldGenerateStructures
public boolean shouldGenerateStructures()Description copied from class:ChunkGeneratorGets if the server should generate Vanilla structures after this ChunkGenerator.This is method is not called (and has therefore no effect), if
ChunkGenerator.shouldGenerateStructures(WorldInfo, Random, int, int)is overridden.- Overrides:
shouldGenerateStructuresin classChunkGenerator- Returns:
- true if the server should generate Vanilla structures
- See Also:
-