EquipmentSlotGroup

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.EquipmentSlotGroup;

Implements

EquipmentSlotGroup implements the following interfaces:

StringRepresentable

Undocumented Interfaces

Comparable<Enum>

Enum Constants

EquipmentSlotGroup is an enum with 10 constants. They are accessible like so:

script.zs
// EquipmentSlotGroup.ANY
<constant:minecraft:equipmentslot/group:any>
// EquipmentSlotGroup.ARMOR
<constant:minecraft:equipmentslot/group:armor>
// EquipmentSlotGroup.BODY
<constant:minecraft:equipmentslot/group:body>
// EquipmentSlotGroup.CHEST
<constant:minecraft:equipmentslot/group:chest>
// EquipmentSlotGroup.FEET
<constant:minecraft:equipmentslot/group:feet>
// EquipmentSlotGroup.HAND
<constant:minecraft:equipmentslot/group:hand>
// EquipmentSlotGroup.HEAD
<constant:minecraft:equipmentslot/group:head>
// EquipmentSlotGroup.LEGS
<constant:minecraft:equipmentslot/group:legs>
// EquipmentSlotGroup.MAINHAND
<constant:minecraft:equipmentslot/group:mainhand>
// EquipmentSlotGroup.OFFHAND
<constant:minecraft:equipmentslot/group:offhand>

Members

static bySlot(slot as EquipmentSlot) as EquipmentSlotGroup
Gets the EquipmentSlotGroup by the EquipmentSlot.

Returns: The EquipmentSlotGroup of the EquipmentSlot.

script.zs
// EquipmentSlotGroup.bySlot(slot as EquipmentSlot) as EquipmentSlotGroup;
EquipmentSlotGroup.bySlot(myEquipmentSlot);

Parameters:

slot Type: EquipmentSlot - The EquipmentSlot to get the EquipmentSlotGroup of.

Return Type: EquipmentSlotGroup

Getter
Gets the serialized name.
script.zs
// EquipmentSlotGroup.serializedName as string
<constant:minecraft:equipmentslot/group:any>.serializedName

Return Type: string

serializedName() as string
Gets the serialized name.

Returns: the serialized name.

script.zs
// EquipmentSlotGroup.serializedName() as string;
<constant:minecraft:equipmentslot/group:any>.serializedName();

Return Type: string

test(slot as EquipmentSlot) as bool
Checks if the EquipmentSlotGroup contains the EquipmentSlot.

Returns: True if the EquipmentSlotGroup contains the EquipmentSlot, false otherwise.

script.zs
// EquipmentSlotGroup.test(slot as EquipmentSlot) as bool;
<constant:minecraft:equipmentslot/group:any>.test(myEquipmentSlot);

Parameters:

slot Type: EquipmentSlot - The EquipmentSlot to check.

Return Type: bool