Interface EntitySpawnCallback.Post
- Enclosing class:
- EntitySpawnCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback for after the entity succeeds in spawning. Use this for general functions after an entity has spawned.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonEntitySpawnPost(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.ServerLevelAccessor world, net.minecraft.world.phys.Vec3 pos, net.minecraft.world.entity.MobSpawnType reason)
-
Method Details
-
onEntitySpawnPost
void onEntitySpawnPost(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.ServerLevelAccessor world, net.minecraft.world.phys.Vec3 pos, net.minecraft.world.entity.MobSpawnType reason) - Parameters:
entity- the entity that has spawned.world- the world in which the entity spawned.pos- the position at which the entity spawned.reason- the cause for the entity spawn.
-