Struct valence_entity::player::PlayerEntityBundle
source · pub struct PlayerEntityBundle {Show 45 fields
pub player_entity: PlayerEntity,
pub player_food: Food,
pub player_saturation: Saturation,
pub player_absorption_amount: AbsorptionAmount,
pub player_score: Score,
pub player_player_model_parts: PlayerModelParts,
pub player_main_arm: MainArm,
pub player_left_shoulder_entity: LeftShoulderEntity,
pub player_right_shoulder_entity: RightShoulderEntity,
pub living_entity: LivingEntity,
pub living_absorption: Absorption,
pub living_attributes: EntityAttributes,
pub living_attributes_tracker: TrackedEntityAttributes,
pub living_active_status_effects: ActiveStatusEffects,
pub living_living_flags: LivingFlags,
pub living_health: Health,
pub living_potion_swirls_color: PotionSwirlsColor,
pub living_potion_swirls_ambient: PotionSwirlsAmbient,
pub living_stuck_arrow_count: StuckArrowCount,
pub living_stinger_count: StingerCount,
pub living_sleeping_position: SleepingPosition,
pub entity: Entity,
pub entity_flags: Flags,
pub entity_air: Air,
pub entity_custom_name: CustomName,
pub entity_name_visible: NameVisible,
pub entity_silent: Silent,
pub entity_no_gravity: NoGravity,
pub entity_pose: Pose,
pub entity_frozen_ticks: FrozenTicks,
pub kind: EntityKind,
pub id: EntityId,
pub uuid: UniqueId,
pub layer: EntityLayerId,
pub old_layer: OldEntityLayerId,
pub position: Position,
pub old_position: OldPosition,
pub look: Look,
pub head_yaw: HeadYaw,
pub on_ground: OnGround,
pub velocity: Velocity,
pub statuses: EntityStatuses,
pub animations: EntityAnimations,
pub object_data: ObjectData,
pub tracked_data: TrackedData,
}
Expand description
The bundle of components for spawning player
entities.
Fields§
§player_entity: PlayerEntity
§player_food: Food
§player_saturation: Saturation
§player_absorption_amount: AbsorptionAmount
§player_score: Score
§player_player_model_parts: PlayerModelParts
§player_main_arm: MainArm
§player_left_shoulder_entity: LeftShoulderEntity
§player_right_shoulder_entity: RightShoulderEntity
§living_entity: LivingEntity
§living_absorption: Absorption
§living_attributes: EntityAttributes
§living_attributes_tracker: TrackedEntityAttributes
§living_active_status_effects: ActiveStatusEffects
§living_living_flags: LivingFlags
§living_health: Health
§living_potion_swirls_color: PotionSwirlsColor
§living_potion_swirls_ambient: PotionSwirlsAmbient
§living_stuck_arrow_count: StuckArrowCount
§living_stinger_count: StingerCount
§living_sleeping_position: SleepingPosition
§entity: Entity
§entity_flags: Flags
§entity_air: Air
§entity_custom_name: CustomName
§entity_name_visible: NameVisible
§entity_silent: Silent
§entity_no_gravity: NoGravity
§entity_pose: Pose
§entity_frozen_ticks: FrozenTicks
§kind: EntityKind
§id: EntityId
§uuid: UniqueId
§layer: EntityLayerId
§old_layer: OldEntityLayerId
§position: Position
§old_position: OldPosition
§look: Look
§head_yaw: HeadYaw
§on_ground: OnGround
§velocity: Velocity
§statuses: EntityStatuses
§animations: EntityAnimations
§object_data: ObjectData
§tracked_data: TrackedData
Trait Implementations§
source§impl Bundle for PlayerEntityBundle
impl Bundle for PlayerEntityBundle
source§impl Debug for PlayerEntityBundle
impl Debug for PlayerEntityBundle
source§impl Default for PlayerEntityBundle
impl Default for PlayerEntityBundle
impl DynamicBundle for PlayerEntityBundle
Auto Trait Implementations§
impl Freeze for PlayerEntityBundle
impl RefUnwindSafe for PlayerEntityBundle
impl Send for PlayerEntityBundle
impl Sync for PlayerEntityBundle
impl Unpin for PlayerEntityBundle
impl UnwindSafe for PlayerEntityBundle
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates
Self
using data from the given [World
].