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.
import crafttweaker.api.loot.EntityTarget;
Implements
EntityTarget
implements the following interfaces:
Undocumented Interfaces
Comparable<Enum>
Enum Constants
EntityTarget is an enum with 4 constants. They are accessible like so:
// EntityTarget.ATTACKER<constant:minecraft:entitytarget:attacker>// EntityTarget.ATTACKING_PLAYER<constant:minecraft:entitytarget:attacking_player>// EntityTarget.DIRECT_ATTACKER<constant:minecraft:entitytarget:direct_attacker>// EntityTarget.THIS<constant:minecraft:entitytarget:this>
Members
Getter
Gets the serialized name.script.zs
// EntityTarget.serializedName as string<constant:minecraft:entitytarget:attacker>.serializedName
Return Type:
string
serializedName() as string
Gets the serialized name.script.zs
Returns: the serialized name.
// EntityTarget.serializedName() as string;<constant:minecraft:entitytarget:attacker>.serializedName();
Return Type:
string