pub struct BeehiveOccupant {
entity_data: EntityData,
ticks_in_hive: i32,
min_ticks_in_hive: i32,
}Expand description
One entity stored inside a beehive block item.
Fields§
§entity_data: EntityData§ticks_in_hive: i32§min_ticks_in_hive: i32Implementations§
Source§impl BeehiveOccupant
impl BeehiveOccupant
pub const fn new( entity_data: EntityData, ticks_in_hive: i32, min_ticks_in_hive: i32, ) -> Self
pub const fn entity_data(&self) -> &EntityData
pub const fn ticks_in_hive(&self) -> i32
pub const fn min_ticks_in_hive(&self) -> i32
fn to_nbt_compound(&self) -> NbtCompound
fn from_nbt_compound(compound: &NbtCompound) -> Option<Self>
Trait Implementations§
Source§impl Clone for BeehiveOccupant
impl Clone for BeehiveOccupant
Source§fn clone(&self) -> BeehiveOccupant
fn clone(&self) -> BeehiveOccupant
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 moreSource§impl Debug for BeehiveOccupant
impl Debug for BeehiveOccupant
Source§impl HashComponent for BeehiveOccupant
impl HashComponent for BeehiveOccupant
Source§fn hash_component(&self, hasher: &mut ComponentHasher)
fn hash_component(&self, hasher: &mut ComponentHasher)
Hashes this value into the given hasher.
Source§fn compute_hash(&self) -> i32
fn compute_hash(&self) -> i32
Computes the hash of this value.
Source§impl PartialEq for BeehiveOccupant
impl PartialEq for BeehiveOccupant
Source§impl ReadFrom for BeehiveOccupant
impl ReadFrom for BeehiveOccupant
impl StructuralPartialEq for BeehiveOccupant
Auto Trait Implementations§
impl Freeze for BeehiveOccupant
impl RefUnwindSafe for BeehiveOccupant
impl Send for BeehiveOccupant
impl Sync for BeehiveOccupant
impl Unpin for BeehiveOccupant
impl UnsafeUnpin for BeehiveOccupant
impl UnwindSafe for BeehiveOccupant
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>