Wearable

fun Wearable(armor: Armor?, slot: EquipmentSlot, equipSound: Sound): ItemBehaviorFactory<Wearable>
fun Wearable(armor: Armor?, slot: EquipmentSlot, equipSound: SoundEvent): ItemBehaviorFactory<Wearable>
fun Wearable(armor: Armor?, slot: EquipmentSlot, equipSound: String? = null): ItemBehaviorFactory<Wearable>

Allows items to be worn in armor slots.

Parameters

armor

The custom armor texture, or null if no custom texture should be used.

slot

The slot in which the item can be worn.

equipSound

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