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.
import crafttweaker.api.entity.equipment.EquipmentSlotGroup;
Implements
EquipmentSlotGroup
implements the following interfaces:
Undocumented Interfaces
Comparable<Enum>
Enum Constants
EquipmentSlotGroup is an enum with 10 constants. They are accessible like so:
// 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 script.zs
EquipmentSlotGroup
by the EquipmentSlot
.Returns: The EquipmentSlotGroup
of the EquipmentSlot
.
EquipmentSlotGroup.bySlot(myEquipmentSlot);
Parameters:
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.script.zs
Returns: the serialized name.
// EquipmentSlotGroup.serializedName() as string;<constant:minecraft:equipmentslot/group:any>.serializedName();
Return Type:
string
test(slot as EquipmentSlot) as bool
Checks if the script.zs
EquipmentSlotGroup
contains the EquipmentSlot
.Returns: True if the EquipmentSlotGroup
contains the EquipmentSlot
, false otherwise.
<constant:minecraft:equipmentslot/group:any>.test(myEquipmentSlot);
Parameters:
Return Type:
bool