pub struct UseBlockEvent {
pub player_name: String,
pub block_id: String,
pub pos: BlockPos,
}Expand description
Fired when a player right-clicks a block (server side).
Fields§
§player_name: String§block_id: StringRegistry id of the targeted block, e.g. minecraft:chest.
pos: BlockPosTrait Implementations§
Source§impl Clone for UseBlockEvent
impl Clone for UseBlockEvent
Source§fn clone(&self) -> UseBlockEvent
fn clone(&self) -> UseBlockEvent
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 Freeze for UseBlockEvent
impl RefUnwindSafe for UseBlockEvent
impl Send for UseBlockEvent
impl Sync for UseBlockEvent
impl Unpin for UseBlockEvent
impl UnsafeUnpin for UseBlockEvent
impl UnwindSafe for UseBlockEvent
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