setLong

fun setLong(key: String, value: Long): MutableNBTCompound

Sets (and overwrites previous) tag associated to the given key (shorthand method that in turn calls set)