@Singleton @Internal public class DefaultRuntimeEntityRegistry extends java.lang.Object implements RuntimeEntityRegistry
RuntimeEntityRegistry
.Constructor and Description |
---|
DefaultRuntimeEntityRegistry(EntityEventRegistry eventRegistry)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> RuntimePersistentEntity<T> |
getEntity(java.lang.Class<T> type)
Get a new, non-cached instance.
|
EntityEventListener<java.lang.Object> |
getEntityEventListener() |
<T> RuntimePersistentEntity<T> |
newEntity(java.lang.Class<T> type)
Get a new, non-cached instance.
|
public DefaultRuntimeEntityRegistry(EntityEventRegistry eventRegistry)
eventRegistry
- The event registry@NonNull public EntityEventListener<java.lang.Object> getEntityEventListener()
getEntityEventListener
in interface RuntimeEntityRegistry
@NonNull public final <T> RuntimePersistentEntity<T> getEntity(@NonNull java.lang.Class<T> type)
RuntimeEntityRegistry
getEntity
in interface RuntimeEntityRegistry
T
- The generic typetype
- The type@NonNull public <T> RuntimePersistentEntity<T> newEntity(@NonNull java.lang.Class<T> type)
RuntimeEntityRegistry
newEntity
in interface RuntimeEntityRegistry
T
- The generic typetype
- The type