Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

ArmorItemType

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.item.type.armor.ArmorItem.Type;

Implements

Undocumented Interfaces

Comparable<Enum>

Enum Constants

ArmorItemType is an enum with 4 constants. They are accessible like so:

script.zs
// ArmorItemType.BOOTS
<constant:minecraft:armor/type:boots>
// ArmorItemType.CHESTPLATE
<constant:minecraft:armor/type:chestplate>
// ArmorItemType.HELMET
<constant:minecraft:armor/type:helmet>
// ArmorItemType.LEGGINGS
<constant:minecraft:armor/type:leggings>

Members

Getter
script.zs
// Type.name as string
<constant:minecraft:armor/type:boots>.name

Return Type: string

Getter
script.zs
// Type.slot as EquipmentSlot
<constant:minecraft:armor/type:boots>.slot

Return Type: EquipmentSlot