Interface EntityEvents.Unload

Enclosing class:
EntityEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface EntityEvents.Unload
An entity was taken out of a server level: killed, discarded, unloaded with its chunk, or gone to another dimension.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onUnload(net.minecraft.world.entity.Entity entity, net.minecraft.server.level.ServerLevel level)
     
  • Method Details

    • onUnload

      void onUnload(net.minecraft.world.entity.Entity entity, net.minecraft.server.level.ServerLevel level)