pub struct PickupDelay {
pub remaining_ticks: u32,
}Expand description
Pickup delay before a dropped item can be collected.
Decremented each tick. While remaining > 0, the item cannot be picked up by any player. Default: 10 ticks (0.5s) for block drops.
Fields§
§remaining_ticks: u32Remaining ticks before the item is pickable.
Trait Implementations§
Source§impl Clone for PickupDelay
impl Clone for PickupDelay
Source§fn clone(&self) -> PickupDelay
fn clone(&self) -> PickupDelay
Returns a duplicate of the value. Read more
1.0.0 · 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 PickupDelay
impl Debug for PickupDelay
Source§impl PartialEq for PickupDelay
impl PartialEq for PickupDelay
impl Component for PickupDelay
impl Copy for PickupDelay
impl Eq for PickupDelay
impl StructuralPartialEq for PickupDelay
Auto Trait Implementations§
impl Freeze for PickupDelay
impl RefUnwindSafe for PickupDelay
impl Send for PickupDelay
impl Sync for PickupDelay
impl Unpin for PickupDelay
impl UnsafeUnpin for PickupDelay
impl UnwindSafe for PickupDelay
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.