Abstraction of Printing and Writing NBT methods in Trait classes.