Struct valence::entity::EntityKind
pub struct EntityKind(/* private fields */);
Expand description
Identifies the type of an entity. As a component, the entity kind should not be modified.
Implementations§
§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) -> EntityKind
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§
§impl Clone for EntityKind
impl Clone for EntityKind
§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 more§impl Component for EntityKind
impl Component for EntityKind
§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
.§impl Debug for EntityKind
impl Debug for EntityKind
§impl Default for EntityKind
impl Default for EntityKind
§fn default() -> EntityKind
fn default() -> EntityKind
Returns the “default value” for a type. Read more
§impl Deref for EntityKind
impl Deref for EntityKind
§impl Hash for EntityKind
impl Hash for EntityKind
§impl Ord for EntityKind
impl Ord for EntityKind
§impl PartialEq for EntityKind
impl PartialEq for EntityKind
§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>), )
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> Conv for T
impl<T> Conv for T
§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<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> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
§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
.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self
, then passes self.deref()
into the pipe function.§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref()
only in debug builds, and is erased in release
builds.