Expand description
§valence_entity
Components and systems concerning Minecraft entities. This includes “zombie”, “chicken”, “player”, etc.
Bundles of components are used to spawn entities. Each entity type gets its own module here.
Re-exports§
pub use manager::EntityManager;
Modules§
- abstract_
decoration - Parent class:
entity
. - abstract_
donkey - Parent class:
abstract_horse
. - abstract_
fireball - Parent class:
explosive_projectile
. - abstract_
horse - Parent class:
animal
. - abstract_
minecart - Parent class:
entity
. - abstract_
piglin - Parent class:
hostile
. - abstract_
skeleton - Parent class:
hostile
. - active_
status_ effects - allay
- Parent class:
path_aware
. - ambient
- Parent class:
mob
. - animal
- Parent class:
passive
. - area_
effect_ cloud - Parent class:
entity
. - armor_
stand - Parent class:
living
. - arrow
- Parent class:
persistent_projectile
. - attributes
- axolotl
- Parent class:
animal
. - bat
- Parent class:
ambient
. - bee
- Parent class:
animal
. - blaze
- Parent class:
hostile
. - block_
display - Parent class:
display
. - boat
- Parent class:
entity
. - camel
- Parent class:
abstract_horse
. - cat
- Parent class:
tameable
. - cave_
spider - Parent class:
spider
. - chest_
boat - Parent class:
boat
. - chest_
minecart - Parent class:
storage_minecart
. - chicken
- Parent class:
animal
. - cod
- Parent class:
schooling_fish
. - command_
block_ minecart - Parent class:
abstract_minecart
. - cow
- Parent class:
animal
. - creeper
- Parent class:
hostile
. - display
- Parent class:
entity
. - dolphin
- Parent class:
water_creature
. - donkey
- Parent class:
abstract_donkey
. - dragon_
fireball - Parent class:
explosive_projectile
. - drowned
- Parent class:
zombie
. - egg
- Parent class:
thrown_item
. - elder_
guardian - Parent class:
guardian
. - end_
crystal - Parent class:
entity
. - ender_
dragon - Parent class:
mob
. - ender_
pearl - Parent class:
thrown_item
. - enderman
- Parent class:
hostile
. - endermite
- Parent class:
hostile
. - entity
- evoker
- Parent class:
spellcasting_illager
. - evoker_
fangs - Parent class:
entity
. - experience_
bottle - Parent class:
thrown_item
. - experience_
orb - Parent class:
entity
. - explosive_
projectile - Parent class:
projectile
. - eye_
of_ ender - Parent class:
entity
. - falling_
block - Parent class:
entity
. - fireball
- Parent class:
abstract_fireball
. - firework_
rocket - Parent class:
projectile
. - fish
- Parent class:
water_creature
. - fishing_
bobber - Parent class:
projectile
. - flying
- Parent class:
mob
. - fox
- Parent class:
animal
. - frog
- Parent class:
animal
. - furnace_
minecart - Parent class:
abstract_minecart
. - ghast
- Parent class:
flying
. - giant
- Parent class:
hostile
. - glow_
item_ frame - Parent class:
item_frame
. - glow_
squid - Parent class:
squid
. - goat
- Parent class:
animal
. - golem
- Parent class:
path_aware
. - guardian
- Parent class:
hostile
. - hitbox
- hoglin
- Parent class:
animal
. - hopper_
minecart - Parent class:
storage_minecart
. - horse
- Parent class:
abstract_horse
. - hostile
- Parent class:
path_aware
. - husk
- Parent class:
zombie
. - illager
- Parent class:
raider
. - illusioner
- Parent class:
spellcasting_illager
. - interaction
- Parent class:
entity
. - iron_
golem - Parent class:
golem
. - item
- Parent class:
entity
. - item_
display - Parent class:
display
. - item_
frame - Parent class:
abstract_decoration
. - leash_
knot - Parent class:
abstract_decoration
. - lightning
- Parent class:
entity
. - living
- Parent class:
entity
. - llama
- Parent class:
abstract_donkey
. - llama_
spit - Parent class:
projectile
. - magma_
cube - Parent class:
slime
. - manager
- marker
- Parent class:
entity
. - merchant
- Parent class:
passive
. - minecart
- Parent class:
abstract_minecart
. - mob
- Parent class:
living
. - mooshroom
- Parent class:
cow
. - mule
- Parent class:
abstract_donkey
. - ocelot
- Parent class:
animal
. - painting
- Parent class:
abstract_decoration
. - panda
- Parent class:
animal
. - parrot
- Parent class:
tameable_shoulder
. - passive
- Parent class:
path_aware
. - path_
aware - Parent class:
mob
. - patrol
- Parent class:
hostile
. - persistent_
projectile - Parent class:
projectile
. - phantom
- Parent class:
flying
. - pig
- Parent class:
animal
. - piglin
- Parent class:
abstract_piglin
. - piglin_
brute - Parent class:
abstract_piglin
. - pillager
- Parent class:
illager
. - player
- Parent class:
living
. - polar_
bear - Parent class:
animal
. - potion
- Parent class:
thrown_item
. - projectile
- Parent class:
entity
. - pufferfish
- Parent class:
fish
. - query
- rabbit
- Parent class:
animal
. - raider
- Parent class:
patrol
. - ravager
- Parent class:
raider
. - salmon
- Parent class:
schooling_fish
. - schooling_
fish - Parent class:
fish
. - sheep
- Parent class:
animal
. - shulker
- Parent class:
golem
. - shulker_
bullet - Parent class:
projectile
. - silverfish
- Parent class:
hostile
. - skeleton
- Parent class:
abstract_skeleton
. - skeleton_
horse - Parent class:
abstract_horse
. - slime
- Parent class:
mob
. - small_
fireball - Parent class:
abstract_fireball
. - sniffer
- Parent class:
animal
. - snow_
golem - Parent class:
golem
. - snowball
- Parent class:
thrown_item
. - spawner_
minecart - Parent class:
abstract_minecart
. - spectral_
arrow - Parent class:
persistent_projectile
. - spellcasting_
illager - Parent class:
illager
. - spider
- Parent class:
hostile
. - squid
- Parent class:
water_creature
. - storage_
minecart - Parent class:
abstract_minecart
. - stray
- Parent class:
abstract_skeleton
. - strider
- Parent class:
animal
. - tadpole
- Parent class:
fish
. - tameable
- Parent class:
animal
. - tameable_
shoulder - Parent class:
tameable
. - text_
display - Parent class:
display
. - thrown
- Parent class:
projectile
. - thrown_
item - Parent class:
thrown
. - tnt
- Parent class:
entity
. - tnt_
minecart - Parent class:
abstract_minecart
. - tracked_
data - trader_
llama - Parent class:
llama
. - trident
- Parent class:
persistent_projectile
. - tropical_
fish - Parent class:
schooling_fish
. - turtle
- Parent class:
animal
. - vex
- Parent class:
hostile
. - villager
- Parent class:
merchant
. - vindicator
- Parent class:
illager
. - wandering_
trader - Parent class:
merchant
. - warden
- Parent class:
hostile
. - water_
creature - Parent class:
path_aware
. - witch
- Parent class:
raider
. - wither
- Parent class:
hostile
. - wither_
skeleton - Parent class:
abstract_skeleton
. - wither_
skull - Parent class:
explosive_projectile
. - wolf
- Parent class:
tameable
. - zoglin
- Parent class:
hostile
. - zombie
- Parent class:
hostile
. - zombie_
horse - Parent class:
abstract_horse
. - zombie_
villager - Parent class:
zombie
. - zombified_
piglin - Parent class:
zombie
.
Structs§
- Clear
Entity Changes Set - When entities are updated and changes from the current tick are cleared.
Systems that need to observe changes to entities (Such as the difference
between
Position
andOldPosition
) should run before this set (and probably afterInitEntitiesSet
). - Entity
Animations - Entity
Id - A Minecraft entity’s ID according to the protocol.
- Entity
Kind - Identifies the type of an entity. As a component, the entity kind should not be modified.
- Entity
Layer Id - Contains the entity layer an entity is on.
- Entity
Plugin - Entity
Statuses - Euler
Angle - HeadYaw
- Init
Entities Set - When new Minecraft entities are initialized and added to
EntityManager
. - Look
- Describes the direction an entity is looking using pitch and yaw angles.
- Object
Data - Extra integer data passed to the entity spawn packet. The meaning depends on the type of entity being spawned.
- OldEntity
Layer Id - The value of
EntityLayerId
from the end of the previous tick. - OldPosition
- The value of
Position
from the end of the previous tick. - OnGround
- Position
- Update
Tracked Data Set - When tracked data is written to the entity’s
TrackedData
component. Systems that modify tracked data should run before this. - Velocity
- Entity velocity in m/s.
- Villager
Data