EquipmentSlotType

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.entity.equipment.EquipmentSlotType;

Implements

Undocumented Interfaces

Comparable<Enum>

Enum Constants

EquipmentSlotType is an enum with 2 constants. They are accessible like so:

script.zs
// EquipmentSlotType.ARMOR
<constant:minecraft:equipmentslot/type:armor>
// EquipmentSlotType.HAND
<constant:minecraft:equipmentslot/type:hand>

Members

Getter
script.zs
// Type.commandString as string
<constant:minecraft:equipmentslot/type:armor>.commandString

Return Type: string

commandString() as string
script.zs
// Type.commandString() as string;
<constant:minecraft:equipmentslot/type:armor>.commandString();

Return Type: string