PacketEntityEquipment

sealed interface PacketEntityEquipment

Mutable equipment API for packet entities.

Equipment can be accessed by Bukkit EquipmentSlot or by named properties:

entity.equipment[EquipmentSlot.HEAD] = helmet
entity.equipment.hand = sword

Properties

Link copied to clipboard
abstract var body: ItemStack?

The body equipment item.

Link copied to clipboard
abstract var chest: ItemStack?

The chestplate item.

Link copied to clipboard
abstract var feet: ItemStack?

The boots item.

Link copied to clipboard
abstract var hand: ItemStack?

The main-hand item.

Link copied to clipboard
abstract var head: ItemStack?

The helmet item.

Link copied to clipboard
abstract var legs: ItemStack?

The leggings item.

Link copied to clipboard
abstract var offHand: ItemStack?

The off-hand item.

Link copied to clipboard
abstract var saddle: ItemStack?

The saddle item.

Functions

Link copied to clipboard
abstract operator fun get(slot: EquipmentSlot): ItemStack?

Gets the item currently configured for slot.

Link copied to clipboard
abstract operator fun set(slot: EquipmentSlot, value: ItemStack?)

Sets the item for slot.