- Enclosing class:
ServerEntityEvents
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
boolean
onAllowLoad(net.minecraft.world.entity.Entity entity,
net.minecraft.server.level.ServerLevel level,
@Nullable net.minecraft.world.entity.EntitySpawnReason spawnReason,
boolean isLoadedFromDisk)
Called right before an Entity is loaded into a ServerLevel.