nbt icon indicating copy to clipboard operation
nbt copied to clipboard

Save the TagType of lists

Open piegamesde opened this issue 7 years ago • 0 comments

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?

piegamesde avatar Jun 10 '18 15:06 piegamesde