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.

script.zs
import crafttweaker.api.entity.equipment.EquipmentSlot;

Implements

EquipmentSlot implements the following interfaces:

StringRepresentable

Undocumented Interfaces

Comparable<Enum>

Enum Constants

EquipmentSlot is an enum with 7 constants. They are accessible like so:

script.zs
// EquipmentSlot.BODY
<constant:minecraft:equipmentslot:body>
// 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
script.zs
// EquipmentSlot.commandString as string
<constant:minecraft:equipmentslot:body>.commandString

Return Type: string

commandString() as string
script.zs
// EquipmentSlot.commandString() as string;
<constant:minecraft:equipmentslot:body>.commandString();

Return Type: string

Getter
script.zs
// EquipmentSlot.index as int
<constant:minecraft:equipmentslot:body>.index

Return Type: int

index() as int
script.zs
// EquipmentSlot.index() as int;
<constant:minecraft:equipmentslot:body>.index();

Return Type: int

Getter
script.zs
// EquipmentSlot.name as string
<constant:minecraft:equipmentslot:body>.name

Return Type: string

name() as string
script.zs
// EquipmentSlot.name() as string;
<constant:minecraft:equipmentslot:body>.name();

Return Type: string

Getter
Gets the serialized name.
script.zs
// EquipmentSlot.serializedName as string
<constant:minecraft:equipmentslot:body>.serializedName

Return Type: string

serializedName() as string
Gets the serialized name.

Returns: the serialized name.

script.zs
// EquipmentSlot.serializedName() as string;
<constant:minecraft:equipmentslot:body>.serializedName();

Return Type: string

Getter
script.zs
// EquipmentSlot.type as EquipmentSlotType
<constant:minecraft:equipmentslot:body>.type

Return Type: EquipmentSlotType

type() as Type
script.zs
// EquipmentSlot.type() as EquipmentSlotType;
<constant:minecraft:equipmentslot:body>.type();

Return Type: EquipmentSlotType