Struct entmet_lib::entities::entity::Player
source · pub struct Player {
pub additional_hearts: f32,
pub score: i32,
pub displayed_skin_parts: Mask<DisplayedSkinParts>,
pub main_hand: MainHand,
pub left_shoulder: Option<NbtValue>,
pub right_shoulder: Option<NbtValue>,
/* private fields */
}Expand description
An instance of a player
Fields§
§additional_hearts: f32How many additional hearts the player has
score: i32The score of the player
displayed_skin_parts: Mask<DisplayedSkinParts>A list of all displayed skin parts
main_hand: MainHandThe main hand of the player
left_shoulder: Option<NbtValue>NbtData of optional things on the left shoulder
right_shoulder: Option<NbtValue>NbtData of optional things on the right shoulder
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Player
impl RefUnwindSafe for Player
impl Send for Player
impl Sync for Player
impl Unpin for Player
impl UnwindSafe for Player
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