LeviLamina
Loading...
Searching...
No Matches
NetworkItemInstanceDescriptor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/Result.h"
7#include "mc/world/item/ItemDescriptorCount.h"
8
9// auto generated forward declare list
10// clang-format off
11class BinaryStream;
12class BlockPalette;
13class ItemInstance;
15// clang-format on
16
17class NetworkItemInstanceDescriptor : public ::ItemDescriptorCount {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 4, uint> mBlockRuntimeId;
22 ::ll::TypedStorage<8, 32, ::std::string> mUserDataBuffer;
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
27 NetworkItemInstanceDescriptor();
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual ~NetworkItemInstanceDescriptor() /*override*/;
33 // NOLINTEND
34
35public:
36 // member functions
37 // NOLINTBEGIN
38 MCAPI explicit NetworkItemInstanceDescriptor(::ItemInstance const& item);
39
40 MCAPI ::ItemInstance getItemInstance(::BlockPalette const& blockPalette) const;
41
42 MCAPI ::Bedrock::Result<void> read(::ReadOnlyBinaryStream& stream);
43
44#ifdef LL_PLAT_C
45 MCAPI void write(::BinaryStream& stream) const;
46#endif
47 // NOLINTEND
48
49public:
50 // constructor thunks
51 // NOLINTBEGIN
52 MCAPI void* $ctor(::ItemInstance const& item);
53 // NOLINTEND
54
55public:
56 // destructor thunk
57 // NOLINTBEGIN
58 MCAPI void $dtor();
59 // NOLINTEND
60
61public:
62 // vftables
63 // NOLINTBEGIN
64 MCNAPI static void** $vftable();
65 // NOLINTEND
66};
Definition BinaryStream.h:10
Definition BlockPalette.h:19
Definition ItemInstance.h:15
static MCAPI void ** $vftable()
Definition ReadOnlyBinaryStream.h:8