diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/tag.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/tag.h b/include/tag.h index 75a41f2e1f..ae84891c76 100644 --- a/include/tag.h +++ b/include/tag.h @@ -45,6 +45,12 @@ enum class tag_type : int8_t Null = -1 ///< Used to denote empty @ref value s }; +/** + * @brief Returns whether the given number falls within the range of valid tag types + * @param allow_end whether to consider tag_type::End (0) valid + */ +bool is_valid_type(int type, bool allow_end = false); + ///Base class for all NBT tag classes class tag { |
