EquipmentBuilder

class EquipmentBuilder(equipment: EntityEquipment)

A DSL builder for modifying the equipment of a living entity.

Provides convenient properties for getting and setting each equipment slot.

Parameters

equipment

The EntityEquipment instance to modify

Constructors

Link copied to clipboard
constructor(equipment: EntityEquipment)

Properties

Link copied to clipboard
var boots: ItemStack?

The item worn in the boots slot, or null if empty.

Link copied to clipboard
var chestplate: ItemStack?

The item worn in the chestplate slot, or null if empty.

Link copied to clipboard
var helmet: ItemStack?

The item worn in the helmet slot, or null if empty.

Link copied to clipboard
var itemInMainHand: ItemStack?

The item held in the main hand, or null if empty.

Link copied to clipboard
var itemInOffHand: ItemStack?

The item held in the off hand, or null if empty.

Link copied to clipboard
var leggings: ItemStack?

The item worn in the leggings slot, or null if empty.