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 Copyimport 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
Enum Constants
Link to enum-constants
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>
Static Methods
Link to static-methods
Name: bySlot
Return Type: EquipmentSlotGroup
ZenScript CopyEquipmentSlotGroup.bySlot(slot as EquipmentSlot) as EquipmentSlotGroup
Parameter | Type |
---|---|
Parameter slot | Type EquipmentSlot |
Methods
Link to methods
Name: test
Return Type: boolean
ZenScript CopyEquipmentSlotGroup.test(slot as EquipmentSlot) as boolean
Parameter | Type |
---|---|
Parameter slot | Type EquipmentSlot |