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 7 constants. They are accessible like so:
// 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
Gets the command string of the script.zs
EquipmentSlot
.// EquipmentSlot.commandString as string<constant:minecraft:equipmentslot:body>.commandString
Return Type:
string
commandString() as string
Gets the command string of the script.zs
EquipmentSlot
.Returns: The command string of the EquipmentSlot
.
// EquipmentSlot.commandString() as string;<constant:minecraft:equipmentslot:body>.commandString();
Return Type:
string
Getter
Gets the index of the script.zs
EquipmentSlot
.// EquipmentSlot.index as int<constant:minecraft:equipmentslot:body>.index
Return Type:
int
index() as int
Gets the index of the script.zs
EquipmentSlot
.Returns: The index of the EquipmentSlot
.
// EquipmentSlot.index() as int;<constant:minecraft:equipmentslot:body>.index();
Return Type:
int
Getter
Gets the name of the script.zs
EquipmentSlot
.// EquipmentSlot.name as string<constant:minecraft:equipmentslot:body>.name
Return Type:
string
name() as string
Gets the name of the script.zs
EquipmentSlot
.Returns: The name of the EquipmentSlot
.
// 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.script.zs
Returns: the serialized name.
// EquipmentSlot.serializedName() as string;<constant:minecraft:equipmentslot:body>.serializedName();
Return Type:
string
Getter
Gets the type of the script.zs
EquipmentSlot
.// EquipmentSlot.type as EquipmentSlotType<constant:minecraft:equipmentslot:body>.type
Return Type:
EquipmentSlotType
type() as Type
Gets the type of the script.zs
EquipmentSlot
.Returns: The type of the EquipmentSlot
.
<constant:minecraft:equipmentslot:body>.type();
Return Type:
EquipmentSlotType