toEntity

Returns the actual Entity instance associated with this event, or null if the entity is not found.


Returns the actual Entity instance associated with this event, or null if either its EntityClass type is neither equivalent to nor a subclass of klass, or if the entity is not found.