Crate valence_entity

Source
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§

ClearEntityChangesSet
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 and OldPosition) should run before this set (and probably after InitEntitiesSet).
EntityAnimations
EntityId
A Minecraft entity’s ID according to the protocol.
EntityKind
Identifies the type of an entity. As a component, the entity kind should not be modified.
EntityLayerId
Contains the entity layer an entity is on.
EntityPlugin
EntityStatuses
EulerAngle
HeadYaw
InitEntitiesSet
When new Minecraft entities are initialized and added to EntityManager.
Look
Describes the direction an entity is looking using pitch and yaw angles.
ObjectData
Extra integer data passed to the entity spawn packet. The meaning depends on the type of entity being spawned.
OldEntityLayerId
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
UpdateTrackedDataSet
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.
VillagerData

Enums§

BoatKind
CatKind
EntityAnimation
EntityStatus
FrogKind
PaintingKind
Pose
SnifferState
VillagerKind
VillagerProfession