Struct CauldronUse
pub struct CauldronUse {
pub dimension: Identifier,
pub pos: [i32; 3],
pub state: BlockState,
pub actor: EntityRef,
pub hand: Hand,
pub held: ItemStack,
pub underwater: bool,
pub creative: bool,
}Expand description
Immutable inputs captured for one selected interaction.
Fields§
§dimension: IdentifierDimension owning the target.
pos: [i32; 3]Target block position.
state: BlockStateComplete target state before the action.
actor: EntityRefActing player, scoped to the current world.
hand: HandHand used for the action.
held: ItemStackComplete held stack before the action.
underwater: boolWhether water covers the block above the target.
creative: boolWhether creative exchange semantics apply.
Trait Implementations§
§impl Clone for CauldronUse
impl Clone for CauldronUse
§fn clone(&self) -> CauldronUse
fn clone(&self) -> CauldronUse
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 more§impl Debug for CauldronUse
impl Debug for CauldronUse
Auto Trait Implementations§
impl Freeze for CauldronUse
impl RefUnwindSafe for CauldronUse
impl Send for CauldronUse
impl Sync for CauldronUse
impl Unpin for CauldronUse
impl UnsafeUnpin for CauldronUse
impl UnwindSafe for CauldronUse
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