Indicates which entity should be targeted inside a predicate.

Refer to the documentation of the various entries for a more detailed description.

Импорт класса

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

import crafttweaker.api.predicate.TargetedEntity;

Extending Enum<TargetedEntity>

TargetedEntity extends Enum<TargetedEntity>. That means all methods available in Enum<TargetedEntity> are also available in TargetedEntity