Indicates which entity should be targeted inside a predicate.

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

Importing the class

Link to importing-the-class

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.

ZenScript
Copy
import crafttweaker.api.predicate.TargetedEntity;

Extending Enum<TargetedEntity>

Link to extending-enumtargetedentity

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

Static Properties

Link to static-properties

이름TypeHas GetterHas SetterDescription
이름
ACTOR
Type
TargetedEntity
Has Getter
true
Has Setter
false
Description
The actor that caused the loot table roll or otherwise acted. <br /> <br /> Examples of an actor can be the creeper that exploded or the player that gained an advancement.
이름
DIRECT_KILLER
Type
TargetedEntity
Has Getter
true
Has Setter
false
Description
The entity that directly caused the death of the actor. <br /> <br /> The entity is the entity that dealt the final blow to the actor, rather than its actual killer. As an example, <br /> if a skeleton killed a creeper by shooting an arrow, the direct killer will be the arrow.
이름
KILLER
Type
TargetedEntity
Has Getter
true
Has Setter
false
Description
The entity that caused the death of the actor. <br /> <br /> This entity is the actual killer, instead of the entity that actually dealt the final blow to the actor. As an <br /> example, if a skeleton killed a creeper by shooting an arrow, the killer will be the skeleton.
이름
PLAYER_KILLER
Type
TargetedEntity
Has Getter
true
Has Setter
false
Description
The player that caused the death of the actor, if applicable. <br /> <br /> This entity is exactly the same as the killer, except it is only available if the final blow was dealt by a <br /> player.