pub struct BlockPredicate {
pub blocks: PrefixedOptional<IdSet>,
pub properties: PrefixedOptional<PrefixedArray<Property>>,
pub nbt: PrefixedOptional<Nbt>,
pub exact_components: PrefixedArray<ExactDataComponentMatcher>,
pub partial_components: PrefixedArray<PartialDataComponentMatcher>,
}Expand description
A block predicate used by adventure-mode components.
Fields§
§blocks: PrefixedOptional<IdSet>§properties: PrefixedOptional<PrefixedArray<Property>>§nbt: PrefixedOptional<Nbt>§exact_components: PrefixedArray<ExactDataComponentMatcher>§partial_components: PrefixedArray<PartialDataComponentMatcher>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 moreSource§impl Debug for BlockPredicate
impl Debug for BlockPredicate
Source§impl PartialEq for BlockPredicate
impl PartialEq for BlockPredicate
impl StructuralPartialEq for BlockPredicate
Source§impl TypeCodec for BlockPredicate
impl TypeCodec for BlockPredicate
Auto Trait Implementations§
impl Freeze for BlockPredicate
impl RefUnwindSafe for BlockPredicate
impl Send for BlockPredicate
impl Sync for BlockPredicate
impl Unpin for BlockPredicate
impl UnsafeUnpin for BlockPredicate
impl UnwindSafe 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ContextualCodec for Twhere
T: TypeCodec,
impl<T> ContextualCodec for Twhere
T: TypeCodec,
Source§fn encode_with_context(
&self,
writer: &mut impl Write,
_context: &Context,
) -> Result<(), CodecError>
fn encode_with_context( &self, writer: &mut impl Write, _context: &Context, ) -> Result<(), CodecError>
Encodes this value using context supplied by its enclosing structure.
Source§fn decode_with_context(
reader: &mut impl Read,
_context: &Context,
) -> Result<T, CodecError>where
T: Sized,
fn decode_with_context(
reader: &mut impl Read,
_context: &Context,
) -> Result<T, CodecError>where
T: Sized,
Decodes this value using context supplied by its enclosing structure.