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.entity.equipment . EquipmentSlot;
EquipmentSlot
implements the following interfaces:
StringRepresentable
Undocumented Interfaces Comparable <Enum >
EquipmentSlot is an enum with 6 constants. They are accessible like so:
< constant : minecraft:equipmentslot:chest >
< constant : minecraft:equipmentslot:feet >
< constant : minecraft:equipmentslot:head >
< constant : minecraft:equipmentslot:legs >
// EquipmentSlot.MAINHAND
< constant : minecraft:equipmentslot:mainhand >
< constant : minecraft:equipmentslot:offhand >
// EquipmentSlot.commandString as string
< constant : minecraft:equipmentslot:chest > .commandString
Return Type:
string
// EquipmentSlot.commandString() as string;
< constant : minecraft:equipmentslot:chest > .commandString();
Return Type:
string
// EquipmentSlot.index as int
< constant : minecraft:equipmentslot:chest > .index
Return Type:
int
// EquipmentSlot.index() as int;
< constant : minecraft:equipmentslot:chest > .index();
Return Type:
int
// EquipmentSlot.name as string
< constant : minecraft:equipmentslot:chest > .name
Return Type:
string
// EquipmentSlot.name() as string;
< constant : minecraft:equipmentslot:chest > .name();
Return Type:
string
Gets the serialized name. // EquipmentSlot.serializedName as string
< constant : minecraft:equipmentslot:chest > .serializedName
Return Type:
string
Gets the serialized name. Returns : the serialized name.
// EquipmentSlot.serializedName() as string;
< constant : minecraft:equipmentslot:chest > .serializedName();
Return Type:
string
// EquipmentSlot.type as Type
< constant : minecraft:equipmentslot:chest > .type
Return Type:
EquipmentSlotType
// EquipmentSlot.type() as Type;
< constant : minecraft:equipmentslot:chest > .type();
Return Type:
EquipmentSlotType