Interface EntitySpawnCallback


public interface EntitySpawnCallback
Collection of events for entity spawning.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Callback for after the entity succeeds in spawning.
    static interface 
    Callback for before the entity spawns.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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.
  • Field Details

    • PRE

      static final net.fabricmc.fabric.api.event.Event<EntitySpawnCallback.Pre> PRE
      Callback for before the entity spawns. Use this to cancel, force succeed, or alter the entity spawning.
    • POST

      static final net.fabricmc.fabric.api.event.Event<EntitySpawnCallback.Post> POST
      Callback for after the entity succeeds in spawning. Use this for general functions after an entity has spawned.