Skip to main content

LivingEntitySyncedData

Trait LivingEntitySyncedData 

Source
pub trait LivingEntitySyncedData: EntitySyncedData {
    // Required methods
    fn set_sleeping_pos(&self, sleeping_pos: BlockPos);
    fn clear_sleeping_pos(&self);
}
Expand description

Thread-safe access to synchronized data declared by vanilla LivingEntity.

Required Methods§

Source

fn set_sleeping_pos(&self, sleeping_pos: BlockPos)

Sets synchronized vanilla sleeping position.

Source

fn clear_sleeping_pos(&self)

Clears synchronized vanilla sleeping position.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> LivingEntitySyncedData for SyncMutex<T>

Implementors§