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