How to get and change NBT of an item (simple pls)

DataContainer should be functionally equivalent to NBT, DataQuery is just a way to easily descend the tree. Eg,

myEntity.toContainer().getString(DataQuery.of("UnsafeData", "EntityTag, "id"))