struct DesertPyramidPlacer<'a, 'world> {
region: &'a mut WorldGenRegion<'world>,
registry: &'a Registry,
bounding_box: &'a mut BoundingBox,
orientation: Option<Direction>,
clip: BoundingBox,
data: &'a mut DesertPyramidPieceData,
}Fields§
§region: &'a mut WorldGenRegion<'world>§registry: &'a Registry§bounding_box: &'a mut BoundingBox§orientation: Option<Direction>§clip: BoundingBox§data: &'a mut DesertPyramidPieceDataImplementations§
Source§impl DesertPyramidPlacer<'_, '_>
impl DesertPyramidPlacer<'_, '_>
fn update_height_position_to_lowest_ground_height( &mut self, offset: i32, ) -> bool
fn place(&mut self, random: &mut WorldgenRandom)
fn add_cellar( &mut self, sand: BlockStateId, sandstone: BlockStateId, cut_sandstone: BlockStateId, chiseled_sandstone: BlockStateId, orange_terracotta: BlockStateId, blue_terracotta: BlockStateId, )
fn add_cellar_stairs(&mut self, sand: BlockStateId, sandstone: BlockStateId)
fn add_cellar_room( &mut self, cut_sandstone: BlockStateId, chiseled_sandstone: BlockStateId, orange_terracotta: BlockStateId, blue_terracotta: BlockStateId, )
fn generate_box( &mut self, x0: i32, y0: i32, z0: i32, x1: i32, y1: i32, z1: i32, edge: BlockStateId, fill: BlockStateId, skip_air: bool, )
fn fill_column_down( &mut self, state: BlockStateId, x: i32, start_y: i32, z: i32, )
fn place_block(&mut self, state: BlockStateId, x: i32, y: i32, z: i32)
fn get_block(&self, x: i32, y: i32, z: i32) -> BlockStateId
fn transform_state(&self, state: BlockStateId) -> BlockStateId
fn place_sand(&mut self, x: i32, y: i32, z: i32)
fn place_sand_box( &mut self, x0: i32, y0: i32, z0: i32, x1: i32, y1: i32, z1: i32, )
fn place_collapsed_roof_piece(&mut self, x: i32, y: i32, z: i32)
fn place_collapsed_roof(&mut self, x0: i32, y0: i32, z0: i32, x1: i32, z1: i32)
const fn world_pos(&self, x: i32, y: i32, z: i32) -> BlockPos
fn is_replaceable_by_structures(state: BlockStateId) -> bool
fn stairs(facing: Direction) -> BlockStateId
Auto Trait Implementations§
impl<'a, 'world> !RefUnwindSafe for DesertPyramidPlacer<'a, 'world>
impl<'a, 'world> !Sync for DesertPyramidPlacer<'a, 'world>
impl<'a, 'world> !UnwindSafe for DesertPyramidPlacer<'a, 'world>
impl<'a, 'world> Freeze for DesertPyramidPlacer<'a, 'world>
impl<'a, 'world> Send for DesertPyramidPlacer<'a, 'world>
impl<'a, 'world> Unpin for DesertPyramidPlacer<'a, 'world>
impl<'a, 'world> UnsafeUnpin for DesertPyramidPlacer<'a, 'world>
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<>>