question: public static String fromGenericTag ( Tag tag ) { switch ( tag . getType ( ) ) { case BYTE : return fromTag ( ( ByteTag ) tag ) ; case BYTE_ARRAY : return fromTag ( ( ByteArrayTag ) tag ) ; case COMPOUND : return fromTag ( ( CompoundTag ) tag ) ; case DOUBLE : return fromTag ( ( DoubleTag ) tag ) ; case FLOAT : return fromTag ( ( FloatTag ) tag ) ; case INT : return fromTag ( ( IntTag ) tag ) ; case INT_ARRAY : return fromTag ( ( IntArrayTag ) tag ) ; case LIST : return fromTag ( ( ListTag ) tag ) ; case LONG : return fromTag ( ( LongTag ) tag ) ; case SHORT : return fromTag ( ( ShortTag ) tag ) ; case STRING : return fromTag ( ( StringTag ) tag ) ; } return null ; }
target:  Creates a Mojangson string from the given NBT Tag. Convenience method for generic tags (Tag).