Class EntitySpawnCallback
java.lang.Object
io.github.vampirestudios.vampirelib.callbacks.EntitySpawnCallback
Collection of events for entity spawning.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceCallback for after the entity succeeds in spawning.static interfaceCallback for before the entity spawns. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.fabricmc.fabric.api.event.Event<EntitySpawnCallback.Post>Callback for after the entity succeeds in spawning.static final net.fabricmc.fabric.api.event.Event<EntitySpawnCallback.Pre>Callback for before the entity spawns. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PRE
Callback for before the entity spawns. Use this to cancel, force succeed, or alter the entity spawning. -
POST
Callback for after the entity succeeds in spawning. Use this for general functions after an entity has spawned.
-
-
Constructor Details
-
EntitySpawnCallback
public EntitySpawnCallback()
-