Creates a new instace of Nbt. This function allows you to customize the behaviour of NBT serialization and deserialization.