pub struct PlayerListEntryBundle {
pub player_list_entry: PlayerListEntry,
pub uuid: UniqueId,
pub username: Username,
pub properties: Properties,
pub game_mode: GameMode,
pub ping: Ping,
pub display_name: DisplayName,
pub listed: Listed,
}
Expand description
Bundle for spawning new player list entries. All components are required unless otherwise stated.
§Despawning player list entries
The [Despawned
] component must be used to despawn player list entries.
Fields§
§player_list_entry: PlayerListEntry
§uuid: UniqueId
Careful not to modify this!
username: Username
§properties: Properties
§game_mode: GameMode
§ping: Ping
§display_name: DisplayName
§listed: Listed
Trait Implementations§
source§impl Bundle for PlayerListEntryBundle
impl Bundle for PlayerListEntryBundle
source§impl Debug for PlayerListEntryBundle
impl Debug for PlayerListEntryBundle
source§impl Default for PlayerListEntryBundle
impl Default for PlayerListEntryBundle
source§fn default() -> PlayerListEntryBundle
fn default() -> PlayerListEntryBundle
Returns the “default value” for a type. Read more
impl DynamicBundle for PlayerListEntryBundle
Auto Trait Implementations§
impl Freeze for PlayerListEntryBundle
impl RefUnwindSafe for PlayerListEntryBundle
impl Send for PlayerListEntryBundle
impl Sync for PlayerListEntryBundle
impl Unpin for PlayerListEntryBundle
impl UnwindSafe for PlayerListEntryBundle
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
].