Cleaned Reference.class and moved nbt related references into a new lib class