MCEquipmentSlotType
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.
import crafttweaker.api.util.MCEquipmentSlotType;
Enum Constants
MCEquipmentSlotType is an enum. It has 6 enum constants. They are accessible using the code below.
MCEquipmentSlotType.MAINHANDMCEquipmentSlotType.OFFHANDMCEquipmentSlotType.FEETMCEquipmentSlotType.LEGSMCEquipmentSlotType.CHESTMCEquipmentSlotType.HEAD
Methods
Return Type: boolean
// MCEquipmentSlotType.isArmor() as boolean
myMCEquipmentSlotType.isArmor();
Return Type: boolean
// MCEquipmentSlotType.isHand() as boolean
myMCEquipmentSlotType.isHand();
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name commandString | Type string | Has Getter true | Has Setter false | Description No Description Provided |
Name name | Type string | Has Getter true | Has Setter false | Description No Description Provided |