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