Struct hematite_server::types::EntitySelector [] [src]

pub struct EntitySelector {
    // some fields omitted
}

An entity selector used in commands, for example @p or @e[type=Creeper,c=2].

Methods

impl EntitySelector

fn all() -> EntitySelector

Returns a selector equivalent to @a, matching all players.

fn player() -> EntitySelector

Returns a selector equivalent to @p, matching the nearest player.

fn random() -> EntitySelector

Returns a selector equivalent to @r, matching a random player.

Trait Implementations

impl Default for EntitySelector

fn default() -> EntitySelector

impl FromStr for EntitySelector

type Err = Error

fn from_str(s: &str) -> Result<EntitySelector, Error>

Derived Implementations

impl PartialEq for EntitySelector

fn eq(&self, __arg_0: &EntitySelector) -> bool

fn ne(&self, __arg_0: &EntitySelector) -> bool

impl Debug for EntitySelector

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for EntitySelector

fn clone(&self) -> EntitySelector

fn clone_from(&mut self, source: &Self)