pub enum StructureProcessorKind {
BlockRot {
rottable_blocks: Option<Identifier>,
integrity: f32,
},
ProtectedBlocks {
cannot_replace: Identifier,
},
Rule {
rules: Vec<ProcessorRuleData>,
},
BlockAge {
mossiness: f32,
},
LavaSubmergedBlock,
BlackstoneReplace,
Capped {
delegate: Box<StructureProcessorKind>,
limit: IntProvider,
},
}Expand description
A typed vanilla structure processor.
Variants§
BlockRot
Randomly drops input blocks.
Fields
§
rottable_blocks: Option<Identifier>Optional tag restricting which blocks may be dropped.
ProtectedBlocks
Prevents replacement of protected world blocks.
Fields
§
cannot_replace: IdentifierVanilla field name is value; it stores the cannot-replace tag.
Rule
Applies the first matching rule.
Fields
§
rules: Vec<ProcessorRuleData>BlockAge
Ages stone/obsidian structure blocks, used by ruined portals.
LavaSubmergedBlock
Keeps non-full structure blocks submerged in existing lava.
BlackstoneReplace
Replaces stone ruin blocks with blackstone variants.
Capped
Delegates to another processor but caps successful modifications.
Trait Implementations§
Source§impl Clone for StructureProcessorKind
impl Clone for StructureProcessorKind
Source§fn clone(&self) -> StructureProcessorKind
fn clone(&self) -> StructureProcessorKind
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 moreSource§impl Debug for StructureProcessorKind
impl Debug for StructureProcessorKind
Source§impl<'de> Deserialize<'de> for StructureProcessorKind
impl<'de> Deserialize<'de> for StructureProcessorKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StructureProcessorKind
impl RefUnwindSafe for StructureProcessorKind
impl Send for StructureProcessorKind
impl Sync for StructureProcessorKind
impl Unpin for StructureProcessorKind
impl UnsafeUnpin for StructureProcessorKind
impl UnwindSafe for StructureProcessorKind
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