Wearable

constructor(texture: Provider<Int?>, slot: Provider<EquipmentSlot>, armor: Provider<Double>, armorToughness: Provider<Double>, knockbackResistance: Provider<Double>, equipSound: Provider<String?>)

Parameters

texture

The leather armor color used for the custom texture, or null if no custom texture should be used.

slot

The slot in which the item can be worn.

armor

The amount of armor this item provides.

armorToughness

The amount of armor toughness this item provides.

knockbackResistance

The amount of knockback resistance this item provides.

equipSound

The sound that is played when the item is equipped, or null if no sound should be played.