Item Displays
Overview
An item display has:
item
which isItemStack
renderType
which isItemDisplayRenderType
Usage
You can spawn an item display using the normal entity spawning pattern:
kotlin
val entity = world.spawnEntity(ItemDisplay(location, world)) as ItemDisplay
val ironSword = ItemStack(Items.IRON_SWORD)
ironSword.components.add(EnchantmentGlintOverrideItemComponent(true))
entity.item.value = ironSword