pub struct PortalResult {
pub biome_check_pos: (i32, i32, i32),
pub bounding_box: BoundingBox,
pub template_id: Identifier,
pub template_size: IVec3,
pub rotation: Rotation,
pub mirror: StructureMirror,
pub rotation_pivot: IVec3,
pub vertical_placement: RuinedPortalPlacementData,
pub properties: RuinedPortalProperties,
pub can_be_cold: bool,
}Expand description
Result of ruined portal generation point computation.
Fields§
§biome_check_pos: (i32, i32, i32)Biome check position (block_x, block_y, block_z).
bounding_box: BoundingBoxBounding box of the placed portal piece.
template_id: IdentifierSelected template id.
template_size: IVec3Template size in blocks.
rotation: RotationTemplate rotation.
mirror: StructureMirrorTemplate mirror.
rotation_pivot: IVec3Template rotation pivot in local coordinates.
vertical_placement: RuinedPortalPlacementDataVertical placement selected by the setup.
properties: RuinedPortalPropertiesRuined portal properties before the cold biome adjustment.
can_be_cold: boolWhether vanilla evaluates coldness for this setup.
Auto Trait Implementations§
impl Freeze for PortalResult
impl RefUnwindSafe for PortalResult
impl Send for PortalResult
impl Sync for PortalResult
impl Unpin for PortalResult
impl UnsafeUnpin for PortalResult
impl UnwindSafe for PortalResult
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<>>