getEntitiesOfType

abstract fun <E : Entity> getEntitiesOfType(type: Class<E>): Collection<E>

Gets all entities of the given type contained within this container.

Return

all entities of the given type

Parameters

E

the entity type

type

the entity type


abstract fun <E : Entity> getEntitiesOfType(type: Class<E>, predicate: Predicate<E>): Collection<E>

Gets all entities of the given type matching the given predicate contained within this container.

Return

the entities

Parameters

E

the entity type

type

the entity type

predicate

the predicate to filter entities with