EquipmentSlotGroup

Link to equipmentslotgroup

Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.entity.equipment.EquipmentSlotGroup;

Implemented Interfaces

Link to implemented-interfaces

EquipmentSlotGroup implements the following interfaces. That means all methods defined in these interfaces are also available in EquipmentSlotGroup

EquipmentSlotGroup is an enum. It has 10 enum constants. They are accessible using the code below.

ZenScript
Copy
<constant:minecraft:equipmentslot/group:any>
<constant:minecraft:equipmentslot/group:mainhand>
<constant:minecraft:equipmentslot/group:offhand>
<constant:minecraft:equipmentslot/group:hand>
<constant:minecraft:equipmentslot/group:feet>
<constant:minecraft:equipmentslot/group:legs>
<constant:minecraft:equipmentslot/group:chest>
<constant:minecraft:equipmentslot/group:head>
<constant:minecraft:equipmentslot/group:armor>
<constant:minecraft:equipmentslot/group:body>

Name: bySlot

Return Type: EquipmentSlotGroup

ZenScript
Copy
EquipmentSlotGroup.bySlot(slot as EquipmentSlot) as EquipmentSlotGroup
ParameterType
Parameter
slot
Type
EquipmentSlot

Name: test

Return Type: boolean

ZenScript
Copy
EquipmentSlotGroup.test(slot as EquipmentSlot) as boolean
ParameterType
Parameter
slot
Type
EquipmentSlot