pub struct EmptyChunkGenerator;Expand description
A chunk generator that generates an empty world.
Implementations§
Trait Implementations§
Source§impl ChunkGenerator for EmptyChunkGenerator
impl ChunkGenerator for EmptyChunkGenerator
Source§fn noise_biome(&self, _quart_x: i32, _quart_y: i32, _quart_z: i32) -> BiomeRef
fn noise_biome(&self, _quart_x: i32, _quart_y: i32, _quart_z: i32) -> BiomeRef
Returns the generator biome at one quart position without requiring a loaded chunk.
Source§fn create_structures(&self, _chunk: &Chunk)
fn create_structures(&self, _chunk: &Chunk)
Creates the structures in a chunk.
Source§fn create_biomes(&self, _chunk: &Chunk)
fn create_biomes(&self, _chunk: &Chunk)
Creates the biomes in a chunk.
Source§fn fill_from_noise(
&self,
_chunk: GenerationChunk<'_, NoisePhase>,
_beardifier: Option<&Beardifier>,
)
fn fill_from_noise( &self, _chunk: GenerationChunk<'_, NoisePhase>, _beardifier: Option<&Beardifier>, )
Fills the chunk with noise. Read more
Source§fn build_surface(
&self,
_chunk: GenerationChunk<'_, SurfacePhase>,
_neighbor_biomes: &dyn Fn(IVec3) -> u16,
)
fn build_surface( &self, _chunk: GenerationChunk<'_, SurfacePhase>, _neighbor_biomes: &dyn Fn(IVec3) -> u16, )
Builds the surface of the chunk. Read more
Source§fn apply_carvers(&self, _chunk: GenerationChunk<'_, CarversPhase>)
fn apply_carvers(&self, _chunk: GenerationChunk<'_, CarversPhase>)
Applies carvers to the chunk.
Source§fn create_worldgen_region_random(
&self,
world_seed: i64,
center: ChunkPos,
) -> RandomSource
fn create_worldgen_region_random( &self, world_seed: i64, center: ChunkPos, ) -> RandomSource
Creates the per-region random source exposed by vanilla
WorldGenRegion.getRandom().Source§fn apply_biome_decorations(&self, _region: &mut WorldGenRegion<'_>)
fn apply_biome_decorations(&self, _region: &mut WorldGenRegion<'_>)
Applies structure piece placement and biome feature decorations.
Source§fn initial_spawn_search_origin(&self) -> BlockPos
fn initial_spawn_search_origin(&self) -> BlockPos
Returns the climate-selected origin used by vanilla before searching for a safe spawn chunk.
Source§fn spawn_height(&self, min_y: i32, _height: i32) -> i32
fn spawn_height(&self, min_y: i32, _height: i32) -> i32
Returns the generator-provided spawn height used before falling back to the surface heightmap.
Source§fn structure_generator(&self) -> Option<&StructureGenerator>
fn structure_generator(&self) -> Option<&StructureGenerator>
Returns the structure generator used for placement and locate queries.
Source§impl Default for EmptyChunkGenerator
impl Default for EmptyChunkGenerator
Source§fn default() -> EmptyChunkGenerator
fn default() -> EmptyChunkGenerator
Returns the “default value” for a type. Read more
Source§impl From<EmptyChunkGenerator> for ChunkGeneratorType
impl From<EmptyChunkGenerator> for ChunkGeneratorType
Source§fn from(v: EmptyChunkGenerator) -> ChunkGeneratorType
fn from(v: EmptyChunkGenerator) -> ChunkGeneratorType
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EmptyChunkGenerator
impl RefUnwindSafe for EmptyChunkGenerator
impl Send for EmptyChunkGenerator
impl Sync for EmptyChunkGenerator
impl Unpin for EmptyChunkGenerator
impl UnsafeUnpin for EmptyChunkGenerator
impl UnwindSafe for EmptyChunkGenerator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>