setEntityItem

fun setEntityItem(entity: Entity, slot: Int, itemStack: ItemStack)

Sets an item into an entity slot.

Parameters

entity

Target entity

slot

Slot index

itemStack

ItemStack to set