pub struct EntityBaseSaveData {
pub air_supply: i32,
pub portal_cooldown: i32,
pub no_gravity: bool,
pub invulnerable: bool,
pub custom_name: Option<TextComponent>,
pub custom_name_visible: bool,
pub silent: bool,
pub glowing: bool,
pub tags: BTreeSet<String>,
pub custom_data: NbtCompound,
}Expand description
Shared vanilla entity save data that is not part of the movement snapshot.
Fields§
§air_supply: i32Synchronized vanilla Air/air supply value.
portal_cooldown: i32Vanilla dimension-change portal cooldown.
no_gravity: boolShared vanilla NoGravity flag.
invulnerable: boolShared vanilla Invulnerable flag.
custom_name: Option<TextComponent>Optional synchronized vanilla custom name.
custom_name_visible: boolSynchronized vanilla custom-name visibility flag.
silent: boolSynchronized vanilla silent flag.
glowing: boolServer-owned vanilla glowing tag, projected into the shared flags byte.
Vanilla scoreboard tags.
custom_data: NbtCompoundVanilla custom data component payload.
Implementations§
Trait Implementations§
Source§impl Clone for EntityBaseSaveData
impl Clone for EntityBaseSaveData
Source§fn clone(&self) -> EntityBaseSaveData
fn clone(&self) -> EntityBaseSaveData
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 EntityBaseSaveData
impl Debug for EntityBaseSaveData
Source§impl Default for EntityBaseSaveData
impl Default for EntityBaseSaveData
Source§impl PartialEq for EntityBaseSaveData
impl PartialEq for EntityBaseSaveData
impl StructuralPartialEq for EntityBaseSaveData
Auto Trait Implementations§
impl Freeze for EntityBaseSaveData
impl RefUnwindSafe for EntityBaseSaveData
impl Send for EntityBaseSaveData
impl Sync for EntityBaseSaveData
impl Unpin for EntityBaseSaveData
impl UnsafeUnpin for EntityBaseSaveData
impl UnwindSafe for EntityBaseSaveData
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<>>