setEntityNbt

fun setEntityNbt(entity: Entity, tag: CompoundTag)

Replace the NBT data of an entity.

Parameters

entity

the target entity

tag

the CompoundTag to set on the entity