Interface EntitySpawner

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 interface EntitySpawner
A functional interface for creating or spawning entities.

This allows entity creation logic to be passed around as method reference. This way, different factories can provide their own EntitySpawner implementations.

  • Method Summary

    Modifier and Type
    Method
    Description
    Spawns and returns a new Entity.