getTargets

protected Collection<LivingEntity> getTargets(ScriptActionData scriptActionData)

Retrieves and validates the target living entities based on the script conditions.

Return

A collection of validated living entities.

Parameters

scriptActionData

The data for the script action.