Skip to main content

Module spawn

Module spawn 

Source

Structsยง

AgeableMobGroupData
EntitySpawnRequest ๐Ÿ”’
Request for a complete, world-inserting entity spawn.
LoadedEntity ๐Ÿ”’
Keeps freshly loaded passengers alive until the world takes ownership.

Enumsยง

EntitySpawnError ๐Ÿ”’
Failure from the shared spawn coordinator.
EntitySpawnPlacement ๐Ÿ”’
Placement modes used by the shared vanilla entity-spawn coordinator.
EntitySpawnReason
Reason an entity is being spawned, affecting spawn-time initialization such as equipment and group data.
SpawnGroupData

Functionsยง

add_spawned_entity ๐Ÿ”’
Inserts a fully initialized entity into the live world entity manager.
apply_implicit_item_stack_components ๐Ÿ”’
Applies the implicit entity data carried by an item stack.
apply_item_stack_components ๐Ÿ”’
Applies all entity data carried by an item stack during a normal item spawn.
create_entity_instance ๐Ÿ”’
Creates an entity instance through the generated entity factory registry.
entity_type_from_nbt ๐Ÿ”’
entity_y_offset ๐Ÿ”’
load_entity_recursive ๐Ÿ”’
Loads a complete entity tree from vanilla entity NBT without publishing it to the world. The caller owns the atomic insertion boundary.
load_entity_recursive_inner ๐Ÿ”’
load_entity_recursive_owned ๐Ÿ”’
Reborrows an owned compound and loads it through the recursive entity path.
load_entity_save_data ๐Ÿ”’
spawn_entity ๐Ÿ”’
Mirrors vanilla EntityType.spawn for server-side entity creation.