nbtElementCompoundKey

inline fun <T : Tag> nbtElementCompoundKey(id: ResourceLocation): CompoundKey<T>(source)

Creates a CompoundKey which can be used to read and write data to a PersistentCompound in a typesafe way.

This compound key is meant specifically for values of the type Tag. These can be treated differently, as they don't have to be converted or serialized.

Parameters

id

the unique identifier for this key, this should contain your mod id