pub struct TemplatePieceData {Show 13 fields
pub template_id: Identifier,
pub template_position: IVec3,
pub rotation: Rotation,
pub mirror: StructureMirror,
pub rotation_pivot: IVec3,
pub block_ignore: StructureBlockIgnore,
pub late_block_ignore: StructureBlockIgnore,
pub processors: TemplateProcessorList,
pub liquid_settings: LiquidSettingsData,
pub marker_handling: TemplateMarkerHandling,
pub placement_adjustment: TemplatePlacementAdjustment,
pub placement_clip: TemplatePlacementClip,
pub post_process: TemplatePostProcess,
}Expand description
Template-backed non-jigsaw placement data.
Fields§
§template_id: IdentifierStructure template identifier.
template_position: IVec3World-space template origin before rotation/mirror transforms.
rotation: RotationTemplate rotation.
mirror: StructureMirrorTemplate mirror mode.
rotation_pivot: IVec3Rotation pivot in template-local block coordinates.
block_ignore: StructureBlockIgnoreBlock-ignore processor applied before the registry processor list.
late_block_ignore: StructureBlockIgnoreBlock-ignore processor applied after the registry processor list.
processors: TemplateProcessorListProcessor list applied during placement.
liquid_settings: LiquidSettingsDataLiquid handling mode used by vanilla template placement.
marker_handling: TemplateMarkerHandlingHow structure-template data markers are handled for this family.
placement_adjustment: TemplatePlacementAdjustmentFamily-specific position adjustment before template block placement.
placement_clip: TemplatePlacementClipBounding box passed to vanilla template placement.
post_process: TemplatePostProcessFamily-specific work done after the template blocks are placed.
Trait Implementations§
Source§impl Clone for TemplatePieceData
impl Clone for TemplatePieceData
Source§fn clone(&self) -> TemplatePieceData
fn clone(&self) -> TemplatePieceData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TemplatePieceData
impl RefUnwindSafe for TemplatePieceData
impl Send for TemplatePieceData
impl Sync for TemplatePieceData
impl Unpin for TemplatePieceData
impl UnsafeUnpin for TemplatePieceData
impl UnwindSafe for TemplatePieceData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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<>>