Struct valence_entity::EntityKind
source · pub struct EntityKind(/* private fields */);
Expand description
Identifies the type of an entity. As a component, the entity kind should not be modified.
Implementations§
source§impl EntityKind
impl EntityKind
pub const ALLAY: EntityKind = _
pub const AREA_EFFECT_CLOUD: EntityKind = _
pub const ARMOR_STAND: EntityKind = _
pub const ARROW: EntityKind = _
pub const AXOLOTL: EntityKind = _
pub const BAT: EntityKind = _
pub const BEE: EntityKind = _
pub const BLAZE: EntityKind = _
pub const BLOCK_DISPLAY: EntityKind = _
pub const BOAT: EntityKind = _
pub const CAMEL: EntityKind = _
pub const CAT: EntityKind = _
pub const CAVE_SPIDER: EntityKind = _
pub const CHEST_BOAT: EntityKind = _
pub const CHEST_MINECART: EntityKind = _
pub const CHICKEN: EntityKind = _
pub const COD: EntityKind = _
pub const COMMAND_BLOCK_MINECART: EntityKind = _
pub const COW: EntityKind = _
pub const CREEPER: EntityKind = _
pub const DOLPHIN: EntityKind = _
pub const DONKEY: EntityKind = _
pub const DRAGON_FIREBALL: EntityKind = _
pub const DROWNED: EntityKind = _
pub const EGG: EntityKind = _
pub const ELDER_GUARDIAN: EntityKind = _
pub const END_CRYSTAL: EntityKind = _
pub const ENDER_DRAGON: EntityKind = _
pub const ENDER_PEARL: EntityKind = _
pub const ENDERMAN: EntityKind = _
pub const ENDERMITE: EntityKind = _
pub const EVOKER: EntityKind = _
pub const EVOKER_FANGS: EntityKind = _
pub const EXPERIENCE_BOTTLE: EntityKind = _
pub const EXPERIENCE_ORB: EntityKind = _
pub const EYE_OF_ENDER: EntityKind = _
pub const FALLING_BLOCK: EntityKind = _
pub const FIREBALL: EntityKind = _
pub const FIREWORK_ROCKET: EntityKind = _
pub const FISHING_BOBBER: EntityKind = _
pub const FOX: EntityKind = _
pub const FROG: EntityKind = _
pub const FURNACE_MINECART: EntityKind = _
pub const GHAST: EntityKind = _
pub const GIANT: EntityKind = _
pub const GLOW_ITEM_FRAME: EntityKind = _
pub const GLOW_SQUID: EntityKind = _
pub const GOAT: EntityKind = _
pub const GUARDIAN: EntityKind = _
pub const HOGLIN: EntityKind = _
pub const HOPPER_MINECART: EntityKind = _
pub const HORSE: EntityKind = _
pub const HUSK: EntityKind = _
pub const ILLUSIONER: EntityKind = _
pub const INTERACTION: EntityKind = _
pub const IRON_GOLEM: EntityKind = _
pub const ITEM_DISPLAY: EntityKind = _
pub const ITEM: EntityKind = _
pub const ITEM_FRAME: EntityKind = _
pub const LEASH_KNOT: EntityKind = _
pub const LIGHTNING: EntityKind = _
pub const LLAMA: EntityKind = _
pub const LLAMA_SPIT: EntityKind = _
pub const MAGMA_CUBE: EntityKind = _
pub const MARKER: EntityKind = _
pub const MINECART: EntityKind = _
pub const MOOSHROOM: EntityKind = _
pub const MULE: EntityKind = _
pub const OCELOT: EntityKind = _
pub const PAINTING: EntityKind = _
pub const PANDA: EntityKind = _
pub const PARROT: EntityKind = _
pub const PHANTOM: EntityKind = _
pub const PIG: EntityKind = _
pub const PIGLIN_BRUTE: EntityKind = _
pub const PIGLIN: EntityKind = _
pub const PILLAGER: EntityKind = _
pub const PLAYER: EntityKind = _
pub const POLAR_BEAR: EntityKind = _
pub const POTION: EntityKind = _
pub const PUFFERFISH: EntityKind = _
pub const RABBIT: EntityKind = _
pub const RAVAGER: EntityKind = _
pub const SALMON: EntityKind = _
pub const SHEEP: EntityKind = _
pub const SHULKER_BULLET: EntityKind = _
pub const SHULKER: EntityKind = _
pub const SILVERFISH: EntityKind = _
pub const SKELETON: EntityKind = _
pub const SKELETON_HORSE: EntityKind = _
pub const SLIME: EntityKind = _
pub const SMALL_FIREBALL: EntityKind = _
pub const SNIFFER: EntityKind = _
pub const SNOW_GOLEM: EntityKind = _
pub const SNOWBALL: EntityKind = _
pub const SPAWNER_MINECART: EntityKind = _
pub const SPECTRAL_ARROW: EntityKind = _
pub const SPIDER: EntityKind = _
pub const SQUID: EntityKind = _
pub const STRAY: EntityKind = _
pub const STRIDER: EntityKind = _
pub const TADPOLE: EntityKind = _
pub const TEXT_DISPLAY: EntityKind = _
pub const TNT: EntityKind = _
pub const TNT_MINECART: EntityKind = _
pub const TRADER_LLAMA: EntityKind = _
pub const TRIDENT: EntityKind = _
pub const TROPICAL_FISH: EntityKind = _
pub const TURTLE: EntityKind = _
pub const VEX: EntityKind = _
pub const VILLAGER: EntityKind = _
pub const VINDICATOR: EntityKind = _
pub const WANDERING_TRADER: EntityKind = _
pub const WARDEN: EntityKind = _
pub const WITCH: EntityKind = _
pub const WITHER: EntityKind = _
pub const WITHER_SKELETON: EntityKind = _
pub const WITHER_SKULL: EntityKind = _
pub const WOLF: EntityKind = _
pub const ZOGLIN: EntityKind = _
pub const ZOMBIE: EntityKind = _
pub const ZOMBIE_HORSE: EntityKind = _
pub const ZOMBIE_VILLAGER: EntityKind = _
pub const ZOMBIFIED_PIGLIN: EntityKind = _
pub const fn new(inner: i32) -> Self
pub const fn get(self) -> i32
pub const fn translation_key(self) -> Option<&'static str>
Methods from Deref<Target = i32>§
pub const MIN: i32 = -2_147_483_648i32
pub const MAX: i32 = 2_147_483_647i32
pub const BITS: u32 = 32u32
Trait Implementations§
source§impl Clone for EntityKind
impl Clone for EntityKind
source§fn clone(&self) -> EntityKind
fn clone(&self) -> EntityKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Component for EntityKind
impl Component for EntityKind
source§const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table
const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table
A constant indicating the storage type used for this component.
§fn register_component_hooks(_hooks: &mut ComponentHooks)
fn register_component_hooks(_hooks: &mut ComponentHooks)
Called when registering this component, allowing mutable access to its [
ComponentHooks
].source§impl Debug for EntityKind
impl Debug for EntityKind
source§impl Default for EntityKind
impl Default for EntityKind
source§fn default() -> EntityKind
fn default() -> EntityKind
Returns the “default value” for a type. Read more
source§impl Deref for EntityKind
impl Deref for EntityKind
source§impl Hash for EntityKind
impl Hash for EntityKind
source§impl Ord for EntityKind
impl Ord for EntityKind
source§fn cmp(&self, other: &EntityKind) -> Ordering
fn cmp(&self, other: &EntityKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for EntityKind
impl PartialEq for EntityKind
source§impl PartialOrd for EntityKind
impl PartialOrd for EntityKind
impl Copy for EntityKind
impl Eq for EntityKind
impl StructuralPartialEq for EntityKind
Auto Trait Implementations§
impl Freeze for EntityKind
impl RefUnwindSafe for EntityKind
impl Send for EntityKind
impl Sync for EntityKind
impl Unpin for EntityKind
impl UnwindSafe for EntityKind
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<C> Bundle for Cwhere
C: Component,
impl<C> Bundle for Cwhere
C: Component,
fn component_ids( components: &mut Components, storages: &mut Storages, ids: &mut impl FnMut(ComponentId), )
unsafe fn from_components<T, F>(ctx: &mut T, func: &mut F) -> C
§fn get_component_ids(
components: &Components,
ids: &mut impl FnMut(Option<ComponentId>),
)
fn get_component_ids( components: &Components, ids: &mut impl FnMut(Option<ComponentId>), )
Gets this [
Bundle
]’s component ids. This will be None
if the component has not been registered.source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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> DynEq for T
impl<T> DynEq for T
§impl<C> DynamicBundle for Cwhere
C: Component,
impl<C> DynamicBundle for Cwhere
C: Component,
fn get_components(self, func: &mut impl FnMut(StorageType, OwningPtr<'_>))
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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
].