nbt
nbt copied to clipboard
Save the TagType of lists
The ListTag class has an attribute:
private final Class<T> type;
This is fine and helpful, but most of the time I'm more interested in the TagType of the children. I know TagType and Class names are a 1:1 mapping, but it feels wrong to use "secondary" data (the class) to convert it back into "primary" data (the tag type as specified in the file).
I know having the class is useful and may be important for Generics reasons, but is it possible to add the tag type of the children anyway?