pub enum NbtTarget {
Entity(String),
Block(String),
Storage(ResourceLocation),
}Expand description
The source queried by an NBT component.
Variants§
Entity(String)
An entity selected by the contained selector.
Block(String)
A block at the contained position expression.
Storage(ResourceLocation)
A command storage entry identified by its resource location.
Trait Implementations§
impl Eq for NbtTarget
impl StructuralPartialEq for NbtTarget
Auto Trait Implementations§
impl Freeze for NbtTarget
impl RefUnwindSafe for NbtTarget
impl Send for NbtTarget
impl Sync for NbtTarget
impl Unpin for NbtTarget
impl UnsafeUnpin for NbtTarget
impl UnwindSafe for NbtTarget
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