getEntityNbt

fun getEntityNbt(entity: Entity): CompoundTag

Get the full NBT data of an entity.

Return

CompoundTag representing the entity's data

Parameters

entity

the target entity