pub enum Entity {
Sheep(Sheep),
Pig(Pig),
Creeper(Creeper),
Zombie(Zombie),
Skeleton(Skeleton),
Spider(Spider),
Item(Item),
Arrow(Arrow),
PrimedTnt(PrimedTnt),
Sign(Sign),
Smolder(Smolder),
Player(Player),
}
Variants§
Sheep(Sheep)
Pig(Pig)
Creeper(Creeper)
Zombie(Zombie)
Skeleton(Skeleton)
Spider(Spider)
Item(Item)
Arrow(Arrow)
PrimedTnt(PrimedTnt)
Sign(Sign)
Smolder(Smolder)
Player(Player)
Implementations§
Source§impl Entity
impl Entity
pub fn get_sheep(&self) -> Result<Sheep, ClassicError>
pub fn get_pig(&self) -> Result<Pig, ClassicError>
pub fn get_creeper(&self) -> Result<Creeper, ClassicError>
pub fn get_zombie(&self) -> Result<Zombie, ClassicError>
pub fn get_skeleton(&self) -> Result<Skeleton, ClassicError>
pub fn get_spider(&self) -> Result<Spider, ClassicError>
pub fn get_item(&self) -> Result<Item, ClassicError>
pub fn get_arrow(&self) -> Result<Arrow, ClassicError>
pub fn get_primed_tnt(&self) -> Result<PrimedTnt, ClassicError>
pub fn get_sign(&self) -> Result<Sign, ClassicError>
pub fn get_smolder(&self) -> Result<Smolder, ClassicError>
pub fn get_player(&self) -> Result<Player, ClassicError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnwindSafe for Entity
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