pub struct EntityType {Show 15 fields
pub key: Identifier,
pub client_tracking_range: i32,
pub update_interval: i32,
pub track_deltas: bool,
pub dimensions: EntityDimensions,
pub fixed: bool,
pub mob_category: MobCategory,
pub fire_immune: bool,
pub summonable: bool,
pub can_spawn_far_from_player: bool,
pub can_serialize: bool,
pub is_abstract_boat: bool,
pub is_abstract_minecart: bool,
pub flags: EntityFlags,
pub default_attributes: &'static [(&'static str, f64)],
}Fields§
§key: Identifier§client_tracking_range: i32§update_interval: i32§track_deltas: boolWhether vanilla ServerEntity tracks velocity deltas for this type.
dimensions: EntityDimensionsDefault entity dimensions.
fixed: boolIf true, dimensions cannot be scaled.
mob_category: MobCategoryMob category for spawn classification.
fire_immune: boolWhether this entity is immune to fire damage.
summonable: boolWhether this entity can be summoned via commands.
can_spawn_far_from_player: boolWhether this entity can spawn far from players.
can_serialize: boolWhether this entity type can be serialized to disk. Set to false for transient entities (lightning, fishing hooks, players).
is_abstract_boat: boolWhether vanilla class hierarchy makes this entity an AbstractBoat.
is_abstract_minecart: boolWhether vanilla class hierarchy makes this entity an AbstractMinecart.
flags: EntityFlagsBehavioral flags for collision and interaction.
default_attributes: &'static [(&'static str, f64)]Default attribute base values for this entity type Empty for entities that don’t have attributes (projectiles, items, displays, etc.)
Trait Implementations§
Source§impl Debug for EntityType
impl Debug for EntityType
Auto Trait Implementations§
impl Freeze for EntityType
impl RefUnwindSafe for EntityType
impl Send for EntityType
impl Sync for EntityType
impl Unpin for EntityType
impl UnsafeUnpin for EntityType
impl UnwindSafe for EntityType
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