pub enum BlockPredicate {
AllOf {
predicates: Vec<BlockPredicate>,
},
AnyOf {
predicates: Vec<BlockPredicate>,
},
Not {
predicate: Box<BlockPredicate>,
},
MatchingBlockTag {
tag: Identifier,
offset: Offset,
},
MatchingBlocks {
blocks: BlockRefList,
offset: Offset,
},
MatchingFluids {
fluids: FluidRefList,
offset: Offset,
},
Solid {
offset: Offset,
},
WouldSurvive {
state: BlockStateData,
offset: Offset,
},
Replaceable {
offset: Offset,
},
HasSturdyFace {
direction: Direction,
offset: Offset,
},
InsideWorldBounds {
offset: Offset,
},
}Expand description
Block predicates used by placement modifiers and feature configs.
Variants§
AllOf
Fields
§
predicates: Vec<BlockPredicate>AnyOf
Fields
§
predicates: Vec<BlockPredicate>Not
Fields
§
predicate: Box<BlockPredicate>MatchingBlockTag
MatchingBlocks
MatchingFluids
Solid
WouldSurvive
Replaceable
HasSturdyFace
InsideWorldBounds
Trait Implementations§
Source§impl Clone for BlockPredicate
impl Clone for BlockPredicate
Source§fn clone(&self) -> BlockPredicate
fn clone(&self) -> BlockPredicate
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 !RefUnwindSafe for BlockPredicate
impl !UnwindSafe for BlockPredicate
impl Freeze for BlockPredicate
impl Send for BlockPredicate
impl Sync for BlockPredicate
impl Unpin for BlockPredicate
impl UnsafeUnpin for BlockPredicate
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