endstone/nbt
Classes
| Name | Description |
|---|---|
ArrayTag | |
CompoundTag | |
ListTag | |
Tag | |
TagBase | |
ValueTag | |
escape_view |
Enums
| Name | Description |
|---|---|
Type |
Type Aliases
Functions
| Name | Description |
|---|---|
escaped | |
operator!= | |
operator!= | |
operator== | |
operator== |
classArrayTag
Defined in <endstone/nbt/array.h>
Bases: nbt::TagBase
Type Aliases
Methods
typevalue_type
T value_typetypesize_type
std::size_t size_typetypestorage_type
std::vector<value_type> storage_typetypeiterator
typename storage_type::iterator iteratortypeconst_iterator
typename storage_type::const_iterator const_iteratortypedifference_type
typename storage_type::difference_type difference_typemethArrayTag
ArrayTag() =defaultmethArrayTagexplicit
ArrayTag(storage_type v)methArrayTag
ArrayTag(It first, It last)methArrayTag
ArrayTag(std::initializer_list<value_type> init)methemptyconstnoexcept
bool empty() const noexceptmethsizeconstnoexcept
size_type size() const noexceptmethclearnoexcept
void clear() noexceptmethat
value_type& at(size_type i)methatconst
const value_type& at(size_type i) constmethoperator[]
value_type& operator[](size_type i)methoperator[]const
const value_type& operator[](size_type i) constmethdatanoexcept
value_type* data() noexceptmethdataconstnoexcept
const value_type* data() const noexceptmethpush_back
void push_back(value_type v)methassign
void assign(It first, It last)methinsert
iterator insert(const_iterator pos, value_type v)metherase
iterator erase(const_iterator pos)methbeginnoexcept
iterator begin() noexceptmethendnoexcept
iterator end() noexceptmethbeginconstnoexcept
const_iterator begin() const noexceptmethendconstnoexcept
const_iterator end() const noexceptmethcbeginconstnoexcept
const_iterator cbegin() const noexceptmethcendconstnoexcept
const_iterator cend() const noexceptclassCompoundTag
Defined in <endstone/nbt/compound.h>
Bases: nbt::TagBase
Type Aliases
| Name | Description |
|---|---|
key_type | |
value_type | |
map_type | |
size_type | |
iterator | |
const_iterator |
Methods
typekey_type
std::string key_typetypevalue_type
nbt::Tag value_typetypemap_type
std::map<key_type, value_type> map_typetypesize_type
std::size_t size_typetypeiterator
map_type::iterator iteratortypeconst_iterator
map_type::const_iterator const_iteratormethCompoundTag
CompoundTag() =defaultmethCompoundTag
CompoundTag(std::initializer_list<std::pair<key_type, value_type>> init)methemptyconstnoexcept
bool empty() const noexceptmethsizeconstnoexcept
size_type size() const noexceptmethat
value_type& at(const key_type& key)methatconst
const value_type& at(key_type key) constmethoperator[]
value_type& operator[](const key_type& key)methcontainsconstnoexcept
bool contains(const key_type& key) const noexceptmethclearnoexcept
void clear() noexceptmethinsert
methemplace
methtry_emplace
methinsert_or_assign
metherase
iterator erase(const_iterator pos)metherase
metherase
iterator erase(const_iterator first, const_iterator last)methswapnoexcept
void swap(CompoundTag& other) noexceptmethmerge
void merge(CompoundTag& source)methmerge
void merge(CompoundTag&& source)methbeginnoexcept
iterator begin() noexceptmethendnoexcept
iterator end() noexceptmethbeginconstnoexcept
const_iterator begin() const noexceptmethendconstnoexcept
const_iterator end() const noexceptmethcbeginconstnoexcept
const_iterator cbegin() const noexceptmethcendconstnoexcept
const_iterator cend() const noexceptclassListTag
Defined in <endstone/nbt/list.h>
Bases: nbt::TagBase
Type Aliases
| Name | Description |
|---|---|
value_type | |
size_type | |
container_type | |
iterator | |
const_iterator |
Methods
typevalue_type
nbt::Tag value_typetypesize_type
std::size_t size_typetypecontainer_type
std::vector<value_type> container_typetypeiterator
container_type::iterator iteratortypeconst_iterator
container_type::const_iterator const_iteratormethListTag
ListTag() =defaultmethListTag
ListTag(std::initializer_list<T> init)methemptyconstnoexcept
bool empty() const noexceptmethsizeconstnoexcept
size_type size() const noexceptmethtypeconstnoexcept
nbt::Type type() const noexceptmethat
value_type& at(size_type i)methatconst
const value_type& at(size_type i) constmethoperator[]
value_type& operator[](size_type i)methoperator[]const
const value_type& operator[](size_type i) constmethclearnoexcept
void clear() noexceptmethpush_back
void push_back(const value_type& v)methpush_back
void push_back(value_type&& v)methemplace_back
value_type& emplace_back(Args&&... args)metherase
iterator erase(const_iterator pos)metherase
iterator erase(const_iterator first, const_iterator last)methbeginnoexcept
iterator begin() noexceptmethendnoexcept
iterator end() noexceptmethbeginconstnoexcept
const_iterator begin() const noexceptmethendconstnoexcept
const_iterator end() const noexceptmethcbeginconstnoexcept
const_iterator cbegin() const noexceptmethcendconstnoexcept
const_iterator cend() const noexceptclassTag
Defined in <endstone/nbt/tag.h>
Type Aliases
| Name | Description |
|---|---|
Storage |
Methods
typeStorage
std::variant<std::monostate, ByteTag, ShortTag, IntTag, LongTag, FloatTag, DoubleTag, StringTag, ByteArrayTag, IntArrayTag, ListTag, CompoundTag> StoragemethTagnoexcept
Tag() noexceptmethTag
Tag(const ByteTag& v)methTag
Tag(ByteTag&& v)methTag
Tag(const ShortTag& v)methTag
Tag(ShortTag&& v)methTag
Tag(const IntTag& v)methTag
Tag(IntTag&& v)methTag
Tag(const LongTag& v)methTag
Tag(LongTag&& v)methTag
Tag(const FloatTag& v)methTag
Tag(FloatTag&& v)methTag
Tag(const DoubleTag& v)methTag
Tag(DoubleTag&& v)methTag
Tag(const StringTag& v)methTag
Tag(StringTag&& v)methTag
Tag(const ByteArrayTag& v)methTag
Tag(ByteArrayTag&& v)methTag
Tag(const IntArrayTag& v)methTag
Tag(IntArrayTag&& v)methTag
Tag(const ListTag& v)methTag
Tag(ListTag&& v)methTag
Tag(const CompoundTag& v)methTag
Tag(CompoundTag&& v)methtypeconstnoexcept
Type type() const noexceptmethsizeconstnoexcept
std::size_t size() const noexceptmethemptyconstnoexcept
bool empty() const noexceptmethoperator[]
Tag& operator[](const std::string& key)methoperator[]
Tag& operator[](std::size_t index)methat
Tag& at(const std::string& key)methatconst
const Tag& at(const std::string& key) constmethat
Tag& at(std::size_t index)methatconst
const Tag& at(std::size_t index) constmethcontainsconstnoexcept
bool contains(const std::string& key) const noexceptmethemplace_back
ListTag& emplace_back(Args&&... args)methemplace
std::pair<CompoundTag::iterator, bool> emplace(Args&&... args)methget
T& get()methgetconst
const T& get() constmethget_ifnoexcept
T* get_if() noexceptmethget_ifconstnoexcept
const T* get_if() const noexceptmethvisitconst
decltype(auto) visit(Fn&& visitor) const &methvisit
decltype(auto) visit(Fn&& visitor) &structTagBase
Defined in <endstone/nbt/type.h>
classValueTag
Defined in <endstone/nbt/value.h>
Bases: nbt::TagBase
Type Aliases
| Name | Description |
|---|---|
value_type |
Methods
| Name | Description |
|---|---|
ValueTag | |
ValueTag | |
ValueTag | |
operator const T & | |
value |
typevalue_type
T value_typemethValueTagconstexpr
constexpr ValueTag() =defaultmethValueTagexplicitconstexpr
constexpr ValueTag(const T& v)methValueTagexplicitconstexpr
constexpr ValueTag(T&& v)methoperator const T &constnoexcept
operator const T &() const noexceptmethvalueconstnoexcept
const T& value() const noexceptstructescape_view
Defined in <endstone/nbt/tag.h>
Variables
| Name | Description |
|---|---|
value |
varvalue
std::string_view valueenumType
std::uint8_t TypeValues
| Name | Value | Description |
|---|---|---|
End | 0 | |
Byte | 1 | |
Short | 2 | |
Int | 3 | |
Long | 4 | |
Float | 5 | |
Double | 6 | |
ByteArray | 7 | |
String | 8 | |
List | 9 | |
Compound | 10 | |
IntArray | 11 |
typeByteArrayTag
nbt::ArrayTag<std::uint8_t> ByteArrayTagtypeByteTag
nbt::ValueTag<std::uint8_t> ByteTagtypeDoubleTag
nbt::ValueTag<double> DoubleTagtypeFloatTag
nbt::ValueTag<float> FloatTagtypeIntArrayTag
nbt::ArrayTag<std::int32_t> IntArrayTagtypeIntTag
nbt::ValueTag<std::int32_t> IntTagtypeLongTag
nbt::ValueTag<std::int64_t> LongTagtypeShortTag
nbt::ValueTag<std::int16_t> ShortTagtypeStringTag
nbt::ValueTag<std::string> StringTagfuncescaped
escape_view escaped(std::string_view value)funcoperator!=noexcept
funcoperator!=noexcept
bool operator!=(const CompoundTag& a, const CompoundTag& b)funcoperator==noexcept
funcoperator==noexcept
bool operator==(const CompoundTag& a, const CompoundTag& b)