public interface EntityListenerProvider
EntityListener object.| Modifier and Type | Method and Description |
|---|---|
default <ENTITY,LISTENER extends EntityListener<ENTITY>> |
get(java.lang.Class<LISTENER> listenerClass,
java.util.function.Supplier<LISTENER> listenerSupplier)
Returns an
EntityListener object. |
default <ENTITY,LISTENER extends EntityListener<ENTITY>> LISTENER get(java.lang.Class<LISTENER> listenerClass, java.util.function.Supplier<LISTENER> listenerSupplier)
EntityListener object.
This method must not return null.
ENTITY - the entity typeLISTENER - the entity listener typelistenerClass - the implementation class of EntityListenerlistenerSupplier - the Supplier object that provides an EntityListener
objectEntityListener object