Trait azalea::prelude::Component

source ·
pub trait Component: Send + Sync + 'static {
    type Storage: ComponentStorage;
}
Expand description

A data type that can be used to store data for an entity.

Component is a derivable trait: this means that a data type can implement it by applying a #[derive(Component)] attribute to it. However, components must always satisfy the Send + Sync + 'static trait bounds.

§Examples

Components can take many forms: they are usually structs, but can also be of every other kind of data type, like enums or zero sized types. The following examples show how components are laid out in code.

// A component can contain data...
#[derive(Component)]
struct LicensePlate(String);

// ... but it can also be a zero-sized marker.
#[derive(Component)]
struct Car;

// Components can also be structs with named fields...
#[derive(Component)]
struct VehiclePerformance {
    acceleration: f32,
    top_speed: f32,
    handling: f32,
}

// ... or enums.
#[derive(Component)]
enum WheelCount {
    Two,
    Three,
    Four,
}

§Component and data access

See the entity module level documentation to learn how to add or remove components from an entity.

See the documentation for Query to learn how to access component data from a system.

§Choosing a storage type

Components can be stored in the world using different strategies with their own performance implications. By default, components are added to the Table storage, which is optimized for query iteration.

Alternatively, components can be added to the SparseSet storage, which is optimized for component insertion and removal. This is achieved by adding an additional #[component(storage = "SparseSet")] attribute to the derive one:

#[derive(Component)]
#[component(storage = "SparseSet")]
struct ComponentA;

§Implementing the trait for foreign types

As a consequence of the orphan rule, it is not possible to separate into two different crates the implementation of Component from the definition of a type. This means that it is not possible to directly have a type defined in a third party library as a component. This important limitation can be easily worked around using the newtype pattern: this makes it possible to locally define and implement Component for a tuple struct that wraps the foreign type. The following example gives a demonstration of this pattern.

// `Component` is defined in the `bevy_ecs` crate.
use bevy_ecs::component::Component;

// `Duration` is defined in the `std` crate.
use std::time::Duration;

// It is not possible to implement `Component` for `Duration` from this position, as they are
// both foreign items, defined in an external crate. However, nothing prevents to define a new
// `Cooldown` type that wraps `Duration`. As `Cooldown` is defined in a local crate, it is
// possible to implement `Component` for it.
#[derive(Component)]
struct Cooldown(Duration);

§!Sync Components

A !Sync type cannot implement Component. However, it is possible to wrap a Send but not Sync type in SyncCell or the currently unstable Exclusive to make it Sync. This forces only having mutable access (&mut T only, never &T), but makes it safe to reference across multiple threads.

This will fail to compile since RefCell is !Sync.

#[derive(Component)]
struct NotSync {
   counter: RefCell<usize>,
}

This will compile since the RefCell is wrapped with SyncCell.

use bevy_utils::synccell::SyncCell;

// This will compile.
#[derive(Component)]
struct ActuallySync {
   counter: SyncCell<RefCell<usize>>,
}

Required Associated Types§

source

type Storage: ComponentStorage

A marker type indicating the storage type used for this component. This must be either TableStorage or SparseStorage.

Implementations on Foreign Types§

source§

impl Component for Pose
where Pose: Send + Sync + 'static,

source§

impl Component for Particle
where Particle: Send + Sync + 'static,

source§

impl Component for Attributes
where Attributes: Send + Sync + 'static,

source§

impl Component for AbstractAgeable
where AbstractAgeable: Send + Sync + 'static,

source§

impl Component for AbstractAgeableBaby
where AbstractAgeableBaby: Send + Sync + 'static,

source§

impl Component for AbstractAnimal
where AbstractAnimal: Send + Sync + 'static,

source§

impl Component for AbstractCreature
where AbstractCreature: Send + Sync + 'static,

source§

impl Component for AbstractEntity
where AbstractEntity: Send + Sync + 'static,

source§

impl Component for AbstractInsentient
where AbstractInsentient: Send + Sync + 'static,

source§

impl Component for AbstractLiving
where AbstractLiving: Send + Sync + 'static,

source§

impl Component for AbstractLivingEffectColor
where AbstractLivingEffectColor: Send + Sync + 'static,

source§

impl Component for AbstractLivingUsingItem
where AbstractLivingUsingItem: Send + Sync + 'static,

source§

impl Component for AbstractMinecart
where AbstractMinecart: Send + Sync + 'static,

source§

impl Component for AbstractMinecartDamage
where AbstractMinecartDamage: Send + Sync + 'static,

source§

impl Component for AbstractMinecartHurt
where AbstractMinecartHurt: Send + Sync + 'static,

source§

impl Component for AbstractMinecartHurtdir
where AbstractMinecartHurtdir: Send + Sync + 'static,

source§

impl Component for AbstractMonster
where AbstractMonster: Send + Sync + 'static,

source§

impl Component for AbstractTameable
where AbstractTameable: Send + Sync + 'static,

source§

impl Component for Aggressive
where Aggressive: Send + Sync + 'static,

source§

impl Component for AirSupply
where AirSupply: Send + Sync + 'static,

source§

impl Component for Allay
where Allay: Send + Sync + 'static,

source§

impl Component for AreaEffectCloud
where AreaEffectCloud: Send + Sync + 'static,

source§

impl Component for AreaEffectCloudColor
where AreaEffectCloudColor: Send + Sync + 'static,

source§

impl Component for ArmorStand
where ArmorStand: Send + Sync + 'static,

source§

impl Component for ArmorStandMarker
where ArmorStandMarker: Send + Sync + 'static,

source§

impl Component for Arrow
where Arrow: Send + Sync + 'static,

source§

impl Component for ArrowCount
where ArrowCount: Send + Sync + 'static,

source§

impl Component for ArrowCritArrow
where ArrowCritArrow: Send + Sync + 'static,

source§

impl Component for ArrowEffectColor
where ArrowEffectColor: Send + Sync + 'static,

source§

impl Component for ArrowNoPhysics
where ArrowNoPhysics: Send + Sync + 'static,

source§

impl Component for ArrowPierceLevel
where ArrowPierceLevel: Send + Sync + 'static,

source§

impl Component for ArrowShotFromCrossbow
where ArrowShotFromCrossbow: Send + Sync + 'static,

source§

impl Component for AttachFace
where AttachFace: Send + Sync + 'static,

source§

impl Component for AttachedToTarget
where AttachedToTarget: Send + Sync + 'static,

source§

impl Component for AttackTarget
where AttackTarget: Send + Sync + 'static,

source§

impl Component for AutoSpinAttack
where AutoSpinAttack: Send + Sync + 'static,

source§

impl Component for Axolotl
where Axolotl: Send + Sync + 'static,

source§

impl Component for AxolotlFromBucket
where AxolotlFromBucket: Send + Sync + 'static,

source§

impl Component for AxolotlVariant
where AxolotlVariant: Send + Sync + 'static,

source§

impl Component for BackgroundColor
where BackgroundColor: Send + Sync + 'static,

source§

impl Component for Bat
where Bat: Send + Sync + 'static,

source§

impl Component for BeamTarget
where BeamTarget: Send + Sync + 'static,

source§

impl Component for Bee
where Bee: Send + Sync + 'static,

source§

impl Component for BeeRemainingAngerTime
where BeeRemainingAngerTime: Send + Sync + 'static,

source§

impl Component for BeeRolling
where BeeRolling: Send + Sync + 'static,

source§

impl Component for Biting
where Biting: Send + Sync + 'static,

source§

impl Component for Blaze
where Blaze: Send + Sync + 'static,

source§

impl Component for BlockDisplay
where BlockDisplay: Send + Sync + 'static,

source§

impl Component for BlockDisplayBillboardRenderConstraints

source§

impl Component for BlockDisplayBlockState
where BlockDisplayBlockState: Send + Sync + 'static,

source§

impl Component for BlockDisplayBrightnessOverride

source§

impl Component for BlockDisplayGlowColorOverride

source§

impl Component for BlockDisplayHeight
where BlockDisplayHeight: Send + Sync + 'static,

source§

impl Component for BlockDisplayLeftRotation
where BlockDisplayLeftRotation: Send + Sync + 'static,

source§

impl Component for BlockDisplayPosRotInterpolationDuration

source§

impl Component for BlockDisplayRightRotation
where BlockDisplayRightRotation: Send + Sync + 'static,

source§

impl Component for BlockDisplayScale
where BlockDisplayScale: Send + Sync + 'static,

source§

impl Component for BlockDisplayShadowRadius
where BlockDisplayShadowRadius: Send + Sync + 'static,

source§

impl Component for BlockDisplayShadowStrength

source§

impl Component for BlockDisplayTransformationInterpolationDuration

source§

impl Component for BlockDisplayTransformationInterpolationStartDeltaTicks

source§

impl Component for BlockDisplayTranslation
where BlockDisplayTranslation: Send + Sync + 'static,

source§

impl Component for BlockDisplayViewRange
where BlockDisplayViewRange: Send + Sync + 'static,

source§

impl Component for BlockDisplayWidth
where BlockDisplayWidth: Send + Sync + 'static,

source§

impl Component for Boat
where Boat: Send + Sync + 'static,

source§

impl Component for BoatDamage
where BoatDamage: Send + Sync + 'static,

source§

impl Component for BoatHurt
where BoatHurt: Send + Sync + 'static,

source§

impl Component for BoatHurtdir
where BoatHurtdir: Send + Sync + 'static,

source§

impl Component for BoatKind
where BoatKind: Send + Sync + 'static,

source§

impl Component for BodyPose
where BodyPose: Send + Sync + 'static,

source§

impl Component for Breeze
where Breeze: Send + Sync + 'static,

source§

impl Component for BubbleTime
where BubbleTime: Send + Sync + 'static,

source§

impl Component for Camel
where Camel: Send + Sync + 'static,

source§

impl Component for CamelBred
where CamelBred: Send + Sync + 'static,

source§

impl Component for CamelEating
where CamelEating: Send + Sync + 'static,

source§

impl Component for CamelSaddled
where CamelSaddled: Send + Sync + 'static,

source§

impl Component for CamelStanding
where CamelStanding: Send + Sync + 'static,

source§

impl Component for CamelTamed
where CamelTamed: Send + Sync + 'static,

source§

impl Component for CanDuplicate
where CanDuplicate: Send + Sync + 'static,

source§

impl Component for CarryState
where CarryState: Send + Sync + 'static,

source§

impl Component for Cat
where Cat: Send + Sync + 'static,

source§

impl Component for CatCollarColor
where CatCollarColor: Send + Sync + 'static,

source§

impl Component for CatVariant
where CatVariant: Send + Sync + 'static,

source§

impl Component for CaveSpider
where CaveSpider: Send + Sync + 'static,

source§

impl Component for Charged
where Charged: Send + Sync + 'static,

source§

impl Component for ChestBoat
where ChestBoat: Send + Sync + 'static,

source§

impl Component for ChestMinecart
where ChestMinecart: Send + Sync + 'static,

source§

impl Component for Chicken
where Chicken: Send + Sync + 'static,

source§

impl Component for ClientAngerLevel
where ClientAngerLevel: Send + Sync + 'static,

source§

impl Component for Climbing
where Climbing: Send + Sync + 'static,

source§

impl Component for Cod
where Cod: Send + Sync + 'static,

source§

impl Component for CodFromBucket
where CodFromBucket: Send + Sync + 'static,

source§

impl Component for CommandBlockMinecart
where CommandBlockMinecart: Send + Sync + 'static,

source§

impl Component for CommandName
where CommandName: Send + Sync + 'static,

source§

impl Component for Converting
where Converting: Send + Sync + 'static,

source§

impl Component for Cow
where Cow: Send + Sync + 'static,

source§

impl Component for Creeper
where Creeper: Send + Sync + 'static,

source§

impl Component for Creepy
where Creepy: Send + Sync + 'static,

source§

impl Component for Crouching
where Crouching: Send + Sync + 'static,

source§

impl Component for CurrentlyGlowing
where CurrentlyGlowing: Send + Sync + 'static,

source§

impl Component for CustomDisplay
where CustomDisplay: Send + Sync + 'static,

source§

impl Component for CustomName
where CustomName: Send + Sync + 'static,

source§

impl Component for CustomNameVisible
where CustomNameVisible: Send + Sync + 'static,

source§

impl Component for Dancing
where Dancing: Send + Sync + 'static,

source§

impl Component for Dangerous
where Dangerous: Send + Sync + 'static,

source§

impl Component for DarkTicksRemaining
where DarkTicksRemaining: Send + Sync + 'static,

source§

impl Component for Dash
where Dash: Send + Sync + 'static,

source§

impl Component for DisplayBlock
where DisplayBlock: Send + Sync + 'static,

source§

impl Component for DisplayOffset
where DisplayOffset: Send + Sync + 'static,

source§

impl Component for Dolphin
where Dolphin: Send + Sync + 'static,

source§

impl Component for Donkey
where Donkey: Send + Sync + 'static,

source§

impl Component for DonkeyBred
where DonkeyBred: Send + Sync + 'static,

source§

impl Component for DonkeyChest
where DonkeyChest: Send + Sync + 'static,

source§

impl Component for DonkeyEating
where DonkeyEating: Send + Sync + 'static,

source§

impl Component for DonkeySaddled
where DonkeySaddled: Send + Sync + 'static,

source§

impl Component for DonkeyStanding
where DonkeyStanding: Send + Sync + 'static,

source§

impl Component for DonkeyTamed
where DonkeyTamed: Send + Sync + 'static,

source§

impl Component for DragonFireball
where DragonFireball: Send + Sync + 'static,

source§

impl Component for DropSeedAtTick
where DropSeedAtTick: Send + Sync + 'static,

source§

impl Component for Drowned
where Drowned: Send + Sync + 'static,

source§

impl Component for DrownedConversion
where DrownedConversion: Send + Sync + 'static,

source§

impl Component for EatCounter
where EatCounter: Send + Sync + 'static,

source§

impl Component for EffectAmbience
where EffectAmbience: Send + Sync + 'static,

source§

impl Component for Egg
where Egg: Send + Sync + 'static,

source§

impl Component for EggItemStack
where EggItemStack: Send + Sync + 'static,

source§

impl Component for ElderGuardian
where ElderGuardian: Send + Sync + 'static,

source§

impl Component for EndCrystal
where EndCrystal: Send + Sync + 'static,

source§

impl Component for EnderDragon
where EnderDragon: Send + Sync + 'static,

source§

impl Component for EnderPearl
where EnderPearl: Send + Sync + 'static,

source§

impl Component for EnderPearlItemStack
where EnderPearlItemStack: Send + Sync + 'static,

source§

impl Component for Enderman
where Enderman: Send + Sync + 'static,

source§

impl Component for Endermite
where Endermite: Send + Sync + 'static,

source§

impl Component for Evoker
where Evoker: Send + Sync + 'static,

source§

impl Component for EvokerFangs
where EvokerFangs: Send + Sync + 'static,

source§

impl Component for EvokerIsCelebrating
where EvokerIsCelebrating: Send + Sync + 'static,

source§

impl Component for EvokerSpellCasting
where EvokerSpellCasting: Send + Sync + 'static,

source§

impl Component for ExperienceBottle
where ExperienceBottle: Send + Sync + 'static,

source§

impl Component for ExperienceBottleItemStack
where ExperienceBottleItemStack: Send + Sync + 'static,

source§

impl Component for ExperienceOrb
where ExperienceOrb: Send + Sync + 'static,

source§

impl Component for EyeOfEnder
where EyeOfEnder: Send + Sync + 'static,

source§

impl Component for EyeOfEnderItemStack
where EyeOfEnderItemStack: Send + Sync + 'static,

source§

impl Component for Faceplanted
where Faceplanted: Send + Sync + 'static,

source§

impl Component for FallFlying
where FallFlying: Send + Sync + 'static,

source§

impl Component for FallingBlock
where FallingBlock: Send + Sync + 'static,

source§

impl Component for Fireball
where Fireball: Send + Sync + 'static,

source§

impl Component for FireballItemStack
where FireballItemStack: Send + Sync + 'static,

source§

impl Component for FireworkRocket
where FireworkRocket: Send + Sync + 'static,

source§

impl Component for FireworksItem
where FireworksItem: Send + Sync + 'static,

source§

impl Component for FishingBobber
where FishingBobber: Send + Sync + 'static,

source§

impl Component for Foil
where Foil: Send + Sync + 'static,

source§

impl Component for Fox
where Fox: Send + Sync + 'static,

source§

impl Component for FoxInterested
where FoxInterested: Send + Sync + 'static,

source§

impl Component for FoxKind
where FoxKind: Send + Sync + 'static,

source§

impl Component for FoxSitting
where FoxSitting: Send + Sync + 'static,

source§

impl Component for Frog
where Frog: Send + Sync + 'static,

source§

impl Component for FrogVariant
where FrogVariant: Send + Sync + 'static,

source§

impl Component for Fuel
where Fuel: Send + Sync + 'static,

source§

impl Component for FurnaceMinecart
where FurnaceMinecart: Send + Sync + 'static,

source§

impl Component for Fuse
where Fuse: Send + Sync + 'static,

source§

impl Component for Ghast
where Ghast: Send + Sync + 'static,

source§

impl Component for Giant
where Giant: Send + Sync + 'static,

source§

impl Component for GlowItemFrame
where GlowItemFrame: Send + Sync + 'static,

source§

impl Component for GlowSquid
where GlowSquid: Send + Sync + 'static,

source§

impl Component for Goat
where Goat: Send + Sync + 'static,

source§

impl Component for GoingHome
where GoingHome: Send + Sync + 'static,

source§

impl Component for GotFish
where GotFish: Send + Sync + 'static,

source§

impl Component for Guardian
where Guardian: Send + Sync + 'static,

source§

impl Component for HasEgg
where HasEgg: Send + Sync + 'static,

source§

impl Component for HasLeftHorn
where HasLeftHorn: Send + Sync + 'static,

source§

impl Component for HasNectar
where HasNectar: Send + Sync + 'static,

source§

impl Component for HasPumpkin
where HasPumpkin: Send + Sync + 'static,

source§

impl Component for HasRightHorn
where HasRightHorn: Send + Sync + 'static,

source§

impl Component for HasStung
where HasStung: Send + Sync + 'static,

source§

impl Component for HeadPose
where HeadPose: Send + Sync + 'static,

source§

impl Component for Health
where Health: Send + Sync + 'static,

source§

impl Component for HiddenGene
where HiddenGene: Send + Sync + 'static,

source§

impl Component for Hoglin
where Hoglin: Send + Sync + 'static,

source§

impl Component for HoglinImmuneToZombification

source§

impl Component for HomePos
where HomePos: Send + Sync + 'static,

source§

impl Component for HookedEntity
where HookedEntity: Send + Sync + 'static,

source§

impl Component for HopperMinecart
where HopperMinecart: Send + Sync + 'static,

source§

impl Component for Horse
where Horse: Send + Sync + 'static,

source§

impl Component for HorseBred
where HorseBred: Send + Sync + 'static,

source§

impl Component for HorseEating
where HorseEating: Send + Sync + 'static,

source§

impl Component for HorseSaddled
where HorseSaddled: Send + Sync + 'static,

source§

impl Component for HorseStanding
where HorseStanding: Send + Sync + 'static,

source§

impl Component for HorseTamed
where HorseTamed: Send + Sync + 'static,

source§

impl Component for HorseTypeVariant
where HorseTypeVariant: Send + Sync + 'static,

source§

impl Component for Husk
where Husk: Send + Sync + 'static,

source§

impl Component for Illusioner
where Illusioner: Send + Sync + 'static,

source§

impl Component for IllusionerIsCelebrating
where IllusionerIsCelebrating: Send + Sync + 'static,

source§

impl Component for IllusionerSpellCasting
where IllusionerSpellCasting: Send + Sync + 'static,

source§

impl Component for InSittingPose
where InSittingPose: Send + Sync + 'static,

source§

impl Component for Interaction
where Interaction: Send + Sync + 'static,

source§

impl Component for InteractionHeight
where InteractionHeight: Send + Sync + 'static,

source§

impl Component for InteractionWidth
where InteractionWidth: Send + Sync + 'static,

source§

impl Component for Inv
where Inv: Send + Sync + 'static,

source§

impl Component for Invisible
where Invisible: Send + Sync + 'static,

source§

impl Component for IronGolem
where IronGolem: Send + Sync + 'static,

source§

impl Component for IsCharging
where IsCharging: Send + Sync + 'static,

source§

impl Component for IsDancing
where IsDancing: Send + Sync + 'static,

source§

impl Component for IsIgnited
where IsIgnited: Send + Sync + 'static,

source§

impl Component for IsLying
where IsLying: Send + Sync + 'static,

source§

impl Component for IsPowered
where IsPowered: Send + Sync + 'static,

source§

impl Component for IsScreamingGoat
where IsScreamingGoat: Send + Sync + 'static,

source§

impl Component for Item
where Item: Send + Sync + 'static,

source§

impl Component for ItemDisplay
where ItemDisplay: Send + Sync + 'static,

source§

impl Component for ItemDisplayBillboardRenderConstraints

source§

impl Component for ItemDisplayBrightnessOverride

source§

impl Component for ItemDisplayGlowColorOverride

source§

impl Component for ItemDisplayHeight
where ItemDisplayHeight: Send + Sync + 'static,

source§

impl Component for ItemDisplayItemDisplay
where ItemDisplayItemDisplay: Send + Sync + 'static,

source§

impl Component for ItemDisplayItemStack
where ItemDisplayItemStack: Send + Sync + 'static,

source§

impl Component for ItemDisplayLeftRotation
where ItemDisplayLeftRotation: Send + Sync + 'static,

source§

impl Component for ItemDisplayPosRotInterpolationDuration

source§

impl Component for ItemDisplayRightRotation
where ItemDisplayRightRotation: Send + Sync + 'static,

source§

impl Component for ItemDisplayScale
where ItemDisplayScale: Send + Sync + 'static,

source§

impl Component for ItemDisplayShadowRadius
where ItemDisplayShadowRadius: Send + Sync + 'static,

source§

impl Component for ItemDisplayShadowStrength
where ItemDisplayShadowStrength: Send + Sync + 'static,

source§

impl Component for ItemDisplayTransformationInterpolationDuration

source§

impl Component for ItemDisplayTransformationInterpolationStartDeltaTicks

source§

impl Component for ItemDisplayTranslation
where ItemDisplayTranslation: Send + Sync + 'static,

source§

impl Component for ItemDisplayViewRange
where ItemDisplayViewRange: Send + Sync + 'static,

source§

impl Component for ItemDisplayWidth
where ItemDisplayWidth: Send + Sync + 'static,

source§

impl Component for ItemFrame
where ItemFrame: Send + Sync + 'static,

source§

impl Component for ItemFrameItem
where ItemFrameItem: Send + Sync + 'static,

source§

impl Component for ItemItem
where ItemItem: Send + Sync + 'static,

source§

impl Component for LastOutput
where LastOutput: Send + Sync + 'static,

source§

impl Component for LastPoseChangeTick
where LastPoseChangeTick: Send + Sync + 'static,

source§

impl Component for LayingEgg
where LayingEgg: Send + Sync + 'static,

source§

impl Component for LeashKnot
where LeashKnot: Send + Sync + 'static,

source§

impl Component for LeftArmPose
where LeftArmPose: Send + Sync + 'static,

source§

impl Component for LeftHanded
where LeftHanded: Send + Sync + 'static,

source§

impl Component for LeftLegPose
where LeftLegPose: Send + Sync + 'static,

source§

impl Component for LightningBolt
where LightningBolt: Send + Sync + 'static,

source§

impl Component for LineWidth
where LineWidth: Send + Sync + 'static,

source§

impl Component for Llama
where Llama: Send + Sync + 'static,

source§

impl Component for LlamaBred
where LlamaBred: Send + Sync + 'static,

source§

impl Component for LlamaChest
where LlamaChest: Send + Sync + 'static,

source§

impl Component for LlamaEating
where LlamaEating: Send + Sync + 'static,

source§

impl Component for LlamaSaddled
where LlamaSaddled: Send + Sync + 'static,

source§

impl Component for LlamaSpit
where LlamaSpit: Send + Sync + 'static,

source§

impl Component for LlamaStanding
where LlamaStanding: Send + Sync + 'static,

source§

impl Component for LlamaTamed
where LlamaTamed: Send + Sync + 'static,

source§

impl Component for LlamaVariant
where LlamaVariant: Send + Sync + 'static,

source§

impl Component for Loyalty
where Loyalty: Send + Sync + 'static,

source§

impl Component for MagmaCube
where MagmaCube: Send + Sync + 'static,

source§

impl Component for Marker
where Marker: Send + Sync + 'static,

source§

impl Component for Minecart
where Minecart: Send + Sync + 'static,

source§

impl Component for MoistnessLevel
where MoistnessLevel: Send + Sync + 'static,

source§

impl Component for Mooshroom
where Mooshroom: Send + Sync + 'static,

source§

impl Component for MooshroomKind
where MooshroomKind: Send + Sync + 'static,

source§

impl Component for Moving
where Moving: Send + Sync + 'static,

source§

impl Component for Mule
where Mule: Send + Sync + 'static,

source§

impl Component for MuleBred
where MuleBred: Send + Sync + 'static,

source§

impl Component for MuleChest
where MuleChest: Send + Sync + 'static,

source§

impl Component for MuleEating
where MuleEating: Send + Sync + 'static,

source§

impl Component for MuleSaddled
where MuleSaddled: Send + Sync + 'static,

source§

impl Component for MuleStanding
where MuleStanding: Send + Sync + 'static,

source§

impl Component for MuleTamed
where MuleTamed: Send + Sync + 'static,

source§

impl Component for NoAi
where NoAi: Send + Sync + 'static,

source§

impl Component for NoBasePlate
where NoBasePlate: Send + Sync + 'static,

source§

impl Component for NoGravity
where NoGravity: Send + Sync + 'static,

source§

impl Component for Ocelot
where Ocelot: Send + Sync + 'static,

source§

impl Component for OnBack
where OnBack: Send + Sync + 'static,

source§

impl Component for OnFire
where OnFire: Send + Sync + 'static,

source§

impl Component for Owneruuid
where Owneruuid: Send + Sync + 'static,

source§

impl Component for PaddleLeft
where PaddleLeft: Send + Sync + 'static,

source§

impl Component for PaddleRight
where PaddleRight: Send + Sync + 'static,

source§

impl Component for Painting
where Painting: Send + Sync + 'static,

source§

impl Component for PaintingVariant
where PaintingVariant: Send + Sync + 'static,

source§

impl Component for Panda
where Panda: Send + Sync + 'static,

source§

impl Component for PandaFlags
where PandaFlags: Send + Sync + 'static,

source§

impl Component for PandaRolling
where PandaRolling: Send + Sync + 'static,

source§

impl Component for PandaSitting
where PandaSitting: Send + Sync + 'static,

source§

impl Component for PandaUnhappyCounter
where PandaUnhappyCounter: Send + Sync + 'static,

source§

impl Component for Parrot
where Parrot: Send + Sync + 'static,

source§

impl Component for ParrotVariant
where ParrotVariant: Send + Sync + 'static,

source§

impl Component for Peek
where Peek: Send + Sync + 'static,

source§

impl Component for Phantom
where Phantom: Send + Sync + 'static,

source§

impl Component for PhantomSize
where PhantomSize: Send + Sync + 'static,

source§

impl Component for Phase
where Phase: Send + Sync + 'static,

source§

impl Component for Pig
where Pig: Send + Sync + 'static,

source§

impl Component for PigBoostTime
where PigBoostTime: Send + Sync + 'static,

source§

impl Component for PigSaddle
where PigSaddle: Send + Sync + 'static,

source§

impl Component for Piglin
where Piglin: Send + Sync + 'static,

source§

impl Component for PiglinBaby
where PiglinBaby: Send + Sync + 'static,

source§

impl Component for PiglinBrute
where PiglinBrute: Send + Sync + 'static,

source§

impl Component for PiglinBruteImmuneToZombification

source§

impl Component for PiglinImmuneToZombification

source§

impl Component for PiglinIsChargingCrossbow
where PiglinIsChargingCrossbow: Send + Sync + 'static,

source§

impl Component for Pillager
where Pillager: Send + Sync + 'static,

source§

impl Component for PillagerIsCelebrating
where PillagerIsCelebrating: Send + Sync + 'static,

source§

impl Component for PillagerIsChargingCrossbow

source§

impl Component for Player
where Player: Send + Sync + 'static,

source§

impl Component for PlayerAbsorption
where PlayerAbsorption: Send + Sync + 'static,

source§

impl Component for PlayerCreated
where PlayerCreated: Send + Sync + 'static,

source§

impl Component for PlayerMainHand
where PlayerMainHand: Send + Sync + 'static,

source§

impl Component for PlayerModeCustomisation
where PlayerModeCustomisation: Send + Sync + 'static,

source§

impl Component for PlayingDead
where PlayingDead: Send + Sync + 'static,

source§

impl Component for PolarBear
where PolarBear: Send + Sync + 'static,

source§

impl Component for PolarBearStanding
where PolarBearStanding: Send + Sync + 'static,

source§

impl Component for Potion
where Potion: Send + Sync + 'static,

source§

impl Component for PotionItemStack
where PotionItemStack: Send + Sync + 'static,

source§

impl Component for Pouncing
where Pouncing: Send + Sync + 'static,

source§

impl Component for PuffState
where PuffState: Send + Sync + 'static,

source§

impl Component for Pufferfish
where Pufferfish: Send + Sync + 'static,

source§

impl Component for PufferfishFromBucket
where PufferfishFromBucket: Send + Sync + 'static,

source§

impl Component for Rabbit
where Rabbit: Send + Sync + 'static,

source§

impl Component for RabbitKind
where RabbitKind: Send + Sync + 'static,

source§

impl Component for Radius
where Radius: Send + Sync + 'static,

source§

impl Component for Ravager
where Ravager: Send + Sync + 'static,

source§

impl Component for RavagerIsCelebrating
where RavagerIsCelebrating: Send + Sync + 'static,

source§

impl Component for RelaxStateOne
where RelaxStateOne: Send + Sync + 'static,

source§

impl Component for Response
where Response: Send + Sync + 'static,

source§

impl Component for Resting
where Resting: Send + Sync + 'static,

source§

impl Component for RightArmPose
where RightArmPose: Send + Sync + 'static,

source§

impl Component for RightLegPose
where RightLegPose: Send + Sync + 'static,

source§

impl Component for Rotation
where Rotation: Send + Sync + 'static,

source§

impl Component for Salmon
where Salmon: Send + Sync + 'static,

source§

impl Component for SalmonFromBucket
where SalmonFromBucket: Send + Sync + 'static,

source§

impl Component for Score
where Score: Send + Sync + 'static,

source§

impl Component for Sheared
where Sheared: Send + Sync + 'static,

source§

impl Component for Sheep
where Sheep: Send + Sync + 'static,

source§

impl Component for ShiftKeyDown
where ShiftKeyDown: Send + Sync + 'static,

source§

impl Component for ShotAtAngle
where ShotAtAngle: Send + Sync + 'static,

source§

impl Component for ShoulderLeft
where ShoulderLeft: Send + Sync + 'static,

source§

impl Component for ShoulderRight
where ShoulderRight: Send + Sync + 'static,

source§

impl Component for ShowArms
where ShowArms: Send + Sync + 'static,

source§

impl Component for ShowBottom
where ShowBottom: Send + Sync + 'static,

source§

impl Component for Shulker
where Shulker: Send + Sync + 'static,

source§

impl Component for ShulkerBullet
where ShulkerBullet: Send + Sync + 'static,

source§

impl Component for ShulkerColor
where ShulkerColor: Send + Sync + 'static,

source§

impl Component for Silent
where Silent: Send + Sync + 'static,

source§

impl Component for Silverfish
where Silverfish: Send + Sync + 'static,

source§

impl Component for Skeleton
where Skeleton: Send + Sync + 'static,

source§

impl Component for SkeletonHorse
where SkeletonHorse: Send + Sync + 'static,

source§

impl Component for SkeletonHorseBred
where SkeletonHorseBred: Send + Sync + 'static,

source§

impl Component for SkeletonHorseEating
where SkeletonHorseEating: Send + Sync + 'static,

source§

impl Component for SkeletonHorseSaddled
where SkeletonHorseSaddled: Send + Sync + 'static,

source§

impl Component for SkeletonHorseStanding
where SkeletonHorseStanding: Send + Sync + 'static,

source§

impl Component for SkeletonHorseTamed
where SkeletonHorseTamed: Send + Sync + 'static,

source§

impl Component for Sleeping
where Sleeping: Send + Sync + 'static,

source§

impl Component for SleepingPos
where SleepingPos: Send + Sync + 'static,

source§

impl Component for Slime
where Slime: Send + Sync + 'static,

source§

impl Component for SlimeSize
where SlimeSize: Send + Sync + 'static,

source§

impl Component for Small
where Small: Send + Sync + 'static,

source§

impl Component for SmallFireball
where SmallFireball: Send + Sync + 'static,

source§

impl Component for SmallFireballItemStack
where SmallFireballItemStack: Send + Sync + 'static,

source§

impl Component for SneezeCounter
where SneezeCounter: Send + Sync + 'static,

source§

impl Component for Sneezing
where Sneezing: Send + Sync + 'static,

source§

impl Component for Sniffer
where Sniffer: Send + Sync + 'static,

source§

impl Component for SnowGolem
where SnowGolem: Send + Sync + 'static,

source§

impl Component for Snowball
where Snowball: Send + Sync + 'static,

source§

impl Component for SnowballItemStack
where SnowballItemStack: Send + Sync + 'static,

source§

impl Component for SpawnerMinecart
where SpawnerMinecart: Send + Sync + 'static,

source§

impl Component for SpecialType
where SpecialType: Send + Sync + 'static,

source§

impl Component for SpectralArrow
where SpectralArrow: Send + Sync + 'static,

source§

impl Component for SpectralArrowCritArrow
where SpectralArrowCritArrow: Send + Sync + 'static,

source§

impl Component for SpectralArrowNoPhysics
where SpectralArrowNoPhysics: Send + Sync + 'static,

source§

impl Component for SpectralArrowPierceLevel
where SpectralArrowPierceLevel: Send + Sync + 'static,

source§

impl Component for SpectralArrowShotFromCrossbow

source§

impl Component for Spider
where Spider: Send + Sync + 'static,

source§

impl Component for Sprinting
where Sprinting: Send + Sync + 'static,

source§

impl Component for Squid
where Squid: Send + Sync + 'static,

source§

impl Component for StaredAt
where StaredAt: Send + Sync + 'static,

source§

impl Component for StartPos
where StartPos: Send + Sync + 'static,

source§

impl Component for State
where State: Send + Sync + 'static,

source§

impl Component for StingerCount
where StingerCount: Send + Sync + 'static,

source§

impl Component for Stray
where Stray: Send + Sync + 'static,

source§

impl Component for StrayConversion
where StrayConversion: Send + Sync + 'static,

source§

impl Component for Strength
where Strength: Send + Sync + 'static,

source§

impl Component for Strider
where Strider: Send + Sync + 'static,

source§

impl Component for StriderBoostTime
where StriderBoostTime: Send + Sync + 'static,

source§

impl Component for StriderSaddle
where StriderSaddle: Send + Sync + 'static,

source§

impl Component for StyleFlags
where StyleFlags: Send + Sync + 'static,

source§

impl Component for Suffocating
where Suffocating: Send + Sync + 'static,

source§

impl Component for Swag
where Swag: Send + Sync + 'static,

source§

impl Component for SwellDir
where SwellDir: Send + Sync + 'static,

source§

impl Component for Swimming
where Swimming: Send + Sync + 'static,

source§

impl Component for Tadpole
where Tadpole: Send + Sync + 'static,

source§

impl Component for TadpoleFromBucket
where TadpoleFromBucket: Send + Sync + 'static,

source§

impl Component for Tame
where Tame: Send + Sync + 'static,

source§

impl Component for TargetA
where TargetA: Send + Sync + 'static,

source§

impl Component for TargetB
where TargetB: Send + Sync + 'static,

source§

impl Component for TargetC
where TargetC: Send + Sync + 'static,

source§

impl Component for Text
where Text: Send + Sync + 'static,

source§

impl Component for TextDisplay
where TextDisplay: Send + Sync + 'static,

source§

impl Component for TextDisplayBillboardRenderConstraints

source§

impl Component for TextDisplayBrightnessOverride

source§

impl Component for TextDisplayGlowColorOverride

source§

impl Component for TextDisplayHeight
where TextDisplayHeight: Send + Sync + 'static,

source§

impl Component for TextDisplayLeftRotation
where TextDisplayLeftRotation: Send + Sync + 'static,

source§

impl Component for TextDisplayPosRotInterpolationDuration

source§

impl Component for TextDisplayRightRotation
where TextDisplayRightRotation: Send + Sync + 'static,

source§

impl Component for TextDisplayScale
where TextDisplayScale: Send + Sync + 'static,

source§

impl Component for TextDisplayShadowRadius
where TextDisplayShadowRadius: Send + Sync + 'static,

source§

impl Component for TextDisplayShadowStrength
where TextDisplayShadowStrength: Send + Sync + 'static,

source§

impl Component for TextDisplayTransformationInterpolationDuration

source§

impl Component for TextDisplayTransformationInterpolationStartDeltaTicks

source§

impl Component for TextDisplayTranslation
where TextDisplayTranslation: Send + Sync + 'static,

source§

impl Component for TextDisplayViewRange
where TextDisplayViewRange: Send + Sync + 'static,

source§

impl Component for TextDisplayWidth
where TextDisplayWidth: Send + Sync + 'static,

source§

impl Component for TextOpacity
where TextOpacity: Send + Sync + 'static,

source§

impl Component for TicksFrozen
where TicksFrozen: Send + Sync + 'static,

source§

impl Component for Tnt
where Tnt: Send + Sync + 'static,

source§

impl Component for TntBlockState
where TntBlockState: Send + Sync + 'static,

source§

impl Component for TntMinecart
where TntMinecart: Send + Sync + 'static,

source§

impl Component for TongueTarget
where TongueTarget: Send + Sync + 'static,

source§

impl Component for TraderLlama
where TraderLlama: Send + Sync + 'static,

source§

impl Component for TravelPos
where TravelPos: Send + Sync + 'static,

source§

impl Component for Travelling
where Travelling: Send + Sync + 'static,

source§

impl Component for TreasurePos
where TreasurePos: Send + Sync + 'static,

source§

impl Component for Trident
where Trident: Send + Sync + 'static,

source§

impl Component for TridentCritArrow
where TridentCritArrow: Send + Sync + 'static,

source§

impl Component for TridentNoPhysics
where TridentNoPhysics: Send + Sync + 'static,

source§

impl Component for TridentPierceLevel
where TridentPierceLevel: Send + Sync + 'static,

source§

impl Component for TridentShotFromCrossbow
where TridentShotFromCrossbow: Send + Sync + 'static,

source§

impl Component for TropicalFish
where TropicalFish: Send + Sync + 'static,

source§

impl Component for TropicalFishFromBucket
where TropicalFishFromBucket: Send + Sync + 'static,

source§

impl Component for TropicalFishTypeVariant
where TropicalFishTypeVariant: Send + Sync + 'static,

source§

impl Component for TrustedId0
where TrustedId0: Send + Sync + 'static,

source§

impl Component for TrustedId1
where TrustedId1: Send + Sync + 'static,

source§

impl Component for Trusting
where Trusting: Send + Sync + 'static,

source§

impl Component for Turtle
where Turtle: Send + Sync + 'static,

source§

impl Component for Vex
where Vex: Send + Sync + 'static,

source§

impl Component for VexFlags
where VexFlags: Send + Sync + 'static,

source§

impl Component for Villager
where Villager: Send + Sync + 'static,

source§

impl Component for VillagerUnhappyCounter
where VillagerUnhappyCounter: Send + Sync + 'static,

source§

impl Component for VillagerVillagerData
where VillagerVillagerData: Send + Sync + 'static,

source§

impl Component for Vindicator
where Vindicator: Send + Sync + 'static,

source§

impl Component for VindicatorIsCelebrating
where VindicatorIsCelebrating: Send + Sync + 'static,

source§

impl Component for Waiting
where Waiting: Send + Sync + 'static,

source§

impl Component for WanderingTrader
where WanderingTrader: Send + Sync + 'static,

source§

impl Component for WanderingTraderUnhappyCounter

source§

impl Component for Warden
where Warden: Send + Sync + 'static,

source§

impl Component for WindCharge
where WindCharge: Send + Sync + 'static,

source§

impl Component for Witch
where Witch: Send + Sync + 'static,

source§

impl Component for WitchIsCelebrating
where WitchIsCelebrating: Send + Sync + 'static,

source§

impl Component for WitchUsingItem
where WitchUsingItem: Send + Sync + 'static,

source§

impl Component for Wither
where Wither: Send + Sync + 'static,

source§

impl Component for WitherSkeleton
where WitherSkeleton: Send + Sync + 'static,

source§

impl Component for WitherSkull
where WitherSkull: Send + Sync + 'static,

source§

impl Component for Wolf
where Wolf: Send + Sync + 'static,

source§

impl Component for WolfCollarColor
where WolfCollarColor: Send + Sync + 'static,

source§

impl Component for WolfInterested
where WolfInterested: Send + Sync + 'static,

source§

impl Component for WolfRemainingAngerTime
where WolfRemainingAngerTime: Send + Sync + 'static,

source§

impl Component for Zoglin
where Zoglin: Send + Sync + 'static,

source§

impl Component for ZoglinBaby
where ZoglinBaby: Send + Sync + 'static,

source§

impl Component for Zombie
where Zombie: Send + Sync + 'static,

source§

impl Component for ZombieBaby
where ZombieBaby: Send + Sync + 'static,

source§

impl Component for ZombieHorse
where ZombieHorse: Send + Sync + 'static,

source§

impl Component for ZombieHorseBred
where ZombieHorseBred: Send + Sync + 'static,

source§

impl Component for ZombieHorseEating
where ZombieHorseEating: Send + Sync + 'static,

source§

impl Component for ZombieHorseSaddled
where ZombieHorseSaddled: Send + Sync + 'static,

source§

impl Component for ZombieHorseStanding
where ZombieHorseStanding: Send + Sync + 'static,

source§

impl Component for ZombieHorseTamed
where ZombieHorseTamed: Send + Sync + 'static,

source§

impl Component for ZombieVillager
where ZombieVillager: Send + Sync + 'static,

source§

impl Component for ZombieVillagerVillagerData

source§

impl Component for ZombifiedPiglin
where ZombifiedPiglin: Send + Sync + 'static,

source§

impl Component for EntityChunkPos
where EntityChunkPos: Send + Sync + 'static,

source§

impl Component for EntityIdIndex
where EntityIdIndex: Send + Sync + 'static,

source§

impl Component for InLoadedChunk
where InLoadedChunk: Send + Sync + 'static,

source§

impl Component for LoadedBy
where LoadedBy: Send + Sync + 'static,

source§

impl Component for Dead
where Dead: Send + Sync + 'static,

source§

impl Component for EntityKind
where EntityKind: Send + Sync + 'static,

source§

impl Component for EntityUuid
where EntityUuid: Send + Sync + 'static,

source§

impl Component for EyeHeight
where EyeHeight: Send + Sync + 'static,

source§

impl Component for FluidOnEyes
where FluidOnEyes: Send + Sync + 'static,

source§

impl Component for Jumping
where Jumping: Send + Sync + 'static,

source§

impl Component for LastSentPosition
where LastSentPosition: Send + Sync + 'static,

source§

impl Component for LocalEntity
where LocalEntity: Send + Sync + 'static,

source§

impl Component for LookDirection
where LookDirection: Send + Sync + 'static,

source§

impl Component for OnClimbable
where OnClimbable: Send + Sync + 'static,

source§

impl Component for Physics
where Physics: Send + Sync + 'static,

source§

impl Component for Position
where Position: Send + Sync + 'static,

source§

impl Component for InstanceName
where InstanceName: Send + Sync + 'static,

source§

impl Component for MinecraftEntityId
where MinecraftEntityId: Send + Sync + 'static,

Implementors§

source§

impl Component for AttackStrengthScale
where AttackStrengthScale: Send + Sync + 'static,

source§

impl Component for TicksSinceLastAttack
where TicksSinceLastAttack: Send + Sync + 'static,

source§

impl Component for ChunkBatchInfo
where ChunkBatchInfo: Send + Sync + 'static,

source§

impl Component for WaitingForInventoryOpen
where Self: Send + Sync + 'static,

source§

impl Component for IsConnectionAlive
where IsConnectionAlive: Send + Sync + 'static,

source§

impl Component for CurrentSequenceNumber
where CurrentSequenceNumber: Send + Sync + 'static,

source§

impl Component for HitResultComponent
where HitResultComponent: Send + Sync + 'static,

source§

impl Component for InventoryComponent
where InventoryComponent: Send + Sync + 'static,

source§

impl Component for MineBlockPos
where MineBlockPos: Send + Sync + 'static,

source§

impl Component for MineDelay
where MineDelay: Send + Sync + 'static,

source§

impl Component for MineItem
where MineItem: Send + Sync + 'static,

source§

impl Component for MineProgress
where MineProgress: Send + Sync + 'static,

source§

impl Component for MineTicks
where MineTicks: Send + Sync + 'static,

source§

impl Component for Mining
where Mining: Send + Sync + 'static,

source§

impl Component for LastSentLookDirection
where LastSentLookDirection: Send + Sync + 'static,

source§

impl Component for IgnoreQueryIds
where IgnoreQueryIds: Send + Sync + 'static,

source§

impl Component for LoginSendPacketQueue
where LoginSendPacketQueue: Send + Sync + 'static,

source§

impl Component for ComputePath
where Self: Send + Sync + 'static,

source§

impl Component for ExecutingPath
where Self: Send + Sync + 'static,

source§

impl Component for Pathfinder
where Self: Send + Sync + 'static,

source§

impl Component for PathfinderDebugParticles
where Self: Send + Sync + 'static,

source§

impl Component for RawConnection
where RawConnection: Send + Sync + 'static,

source§

impl Component for Account
where Account: Send + Sync + 'static,

source§

impl Component for Bot
where Self: Send + Sync + 'static,

source§

impl Component for ClientInformation
where ClientInformation: Send + Sync + 'static,

source§

impl Component for GameProfileComponent
where GameProfileComponent: Send + Sync + 'static,

source§

impl Component for InstanceHolder
where InstanceHolder: Send + Sync + 'static,

source§

impl Component for NoState
where Self: Send + Sync + 'static,

source§

impl Component for PhysicsState
where PhysicsState: Send + Sync + 'static,

source§

impl Component for TabList
where TabList: Send + Sync + 'static,