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 3 constants. They are accessible like so:

script.zs
// EquipmentSlotType.ANIMAL_ARMOR
<constant:minecraft:equipmentslot/type:animal_armor>
// EquipmentSlotType.HAND
<constant:minecraft:equipmentslot/type:hand>
// EquipmentSlotType.HUMANOID_ARMOR
<constant:minecraft:equipmentslot/type:humanoid_armor>

Members

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

Return Type: string

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

Return Type: string