Implementation of NBT API