LeviLamina
Loading...
Searching...
No Matches
ByteArrayTag.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/nbt/Tag.h"
7#include "mc/platform/Result.h"
8
9class ByteArrayTag : public ::Tag, public std::vector<uchar> {
10public:
11 using Array = std::vector<uchar>;
12
13 using Tag::operator==;
14
15 [[nodiscard]] constexpr ByteArrayTag() = default;
16
17 [[nodiscard]] constexpr ByteArrayTag(Array arr) : Array(std::move(arr)) {}
18
19 [[nodiscard]] constexpr ByteArrayTag(std::initializer_list<uchar> val) : Array(val) {}
20
21
22public:
23 // virtual functions
24 // NOLINTBEGIN
25 // vIndex: 5
26 virtual ::Tag::Type getId() const /*override*/;
27
28 // vIndex: 4
29 virtual ::std::string toString() const /*override*/;
30
31 // vIndex: 6
32 virtual bool equals(::Tag const& rhs) const /*override*/;
33
34 // vIndex: 9
35 virtual ::std::unique_ptr<::Tag> copy() const /*override*/;
36
37 // vIndex: 2
38 virtual void write(::IDataOutput& dos) const /*override*/;
39
40 // vIndex: 3
41 virtual ::Bedrock::Result<void> load(::IDataInput& dis) /*override*/;
42
43 // vIndex: 10
44 virtual uint64 hash() const /*override*/;
45
46 // vIndex: 0
47 virtual ~ByteArrayTag() /*override*/ = default;
48 // NOLINTEND
49
50public:
51 // destructor thunk
52 // NOLINTBEGIN
53
54 // NOLINTEND
55
56public:
57 // virtual function thunks
58 // NOLINTBEGIN
59 MCFOLD ::Tag::Type $getId() const;
60
61 MCAPI ::std::string $toString() const;
62
63 MCFOLD bool $equals(::Tag const& rhs) const;
64
65 MCAPI ::std::unique_ptr<::Tag> $copy() const;
66
67 MCAPI void $write(::IDataOutput& dos) const;
68
69 MCAPI ::Bedrock::Result<void> $load(::IDataInput& dis);
70
71 MCAPI uint64 $hash() const;
72 // NOLINTEND
73
74public:
75 // vftables
76 // NOLINTBEGIN
77 MCAPI static void** $vftable();
78 // NOLINTEND
79};
Definition ByteArrayTag.h:9
Definition IDataInput.h:8
Definition IDataOutput.h:5
Definition Tag.h:39