HomeCommandsExamplesGetting Started With ScriptsGlobal Keywords
BracketDumpersBracketHandlersBracketValidatorsResourceLocationBracketHandler

EntityTarget

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.loot.EntityTarget;

Implements

Undocumented Interfaces

Comparable<Enum>

Enum Constants

EntityTarget is an enum with 4 constants. They are accessible like so:

script.zs
// EntityTarget.DIRECT_KILLER
<constant:minecraft:entitytarget:direct_killer>
// EntityTarget.KILLER
<constant:minecraft:entitytarget:killer>
// EntityTarget.KILLER_PLAYER
<constant:minecraft:entitytarget:killer_player>
// EntityTarget.THIS
<constant:minecraft:entitytarget:this>