ScriptEvent:entitiesOfClass

From Mod Wiki

Parameters

integer index -- Index of the class to find instances of.
boolean additive -- Whether the entities should be added to the current cache, or the cache should be cleared first.

Result

integer

Supported By

idEntity

Functionality

Finds all entities of the given class, adds them to the entity cache, and returns the size of the entity cache.