getEntitiesByClass

public abstract Collection<T> getEntitiesByClass<T extends Entity>(Class<T> cls)

Get getClassById collection of all entities in this World matching the given class/interface

Return

A List of all Entities currently residing in this world that match the given class/interface

Parameters

<T>

an entity subclass

cls

The class representing the type of entity to match