Skip to content

BoolTag and Faster SNBT parsing

Compare
Choose a tag to compare
@ForeverZer0 ForeverZer0 released this 18 Sep 22:54
· 23 commits to master since this release

Addition of a BoolTag class for better semantics. While this class cannot be parsed from a binary file (it is serialized as a ByteTag), it will properly be parsed from SNBT where the value is true or false, and can be used with the TagBuilder class via the new AddBool method.

Regular expressions used by the SNBT tokenizer are now created with the Compiled flag for a significant boost in parsing speed at the cost of a minor increase (insignificant) for the load time of the assembly.