Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
NetworkItemStackDescriptor.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/inventory/network/ItemStackNetIdVariant.h"
8#include "mc/world/item/ItemDescriptorCount.h"
9
10// auto generated forward declare list
11// clang-format off
12class BlockPalette;
13class ItemStack;
15// clang-format on
16
17class NetworkItemStackDescriptor : public ::ItemDescriptorCount {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<1, 1, bool> mIncludeNetIds;
22 ::ll::TypedStorage<8, 24, ::ItemStackNetIdVariant> mNetIdVariant;
23 ::ll::TypedStorage<4, 4, uint> mBlockRuntimeId;
24 ::ll::TypedStorage<8, 32, ::std::string> mUserDataBuffer;
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
29 NetworkItemStackDescriptor& operator=(NetworkItemStackDescriptor const&);
30 NetworkItemStackDescriptor();
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual ~NetworkItemStackDescriptor() /*override*/;
36 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI NetworkItemStackDescriptor(::NetworkItemStackDescriptor const&);
42
43 MCAPI explicit NetworkItemStackDescriptor(::ItemStack const& item);
44
45 MCNAPI ::ItemStack getItemStack(::BlockPalette const& blockPalette) const;
46
47 MCNAPI bool operator==(::NetworkItemStackDescriptor const& rhs) const;
48
49 MCNAPI ::Bedrock::Result<void> read(::ReadOnlyBinaryStream& stream);
50 // NOLINTEND
51
52public:
53 // constructor thunks
54 // NOLINTBEGIN
55 MCAPI void* $ctor(::NetworkItemStackDescriptor const&);
56
57 MCAPI void* $ctor(::ItemStack const& item);
58 // NOLINTEND
59
60public:
61 // destructor thunk
62 // NOLINTBEGIN
63 MCFOLD void $dtor();
64 // NOLINTEND
65
66public:
67 // vftables
68 // NOLINTBEGIN
69 MCNAPI static void** $vftable();
70 // NOLINTEND
71};
Definition BlockPalette.h:18
Definition ItemStack.h:26
static MCAPI void ** $vftable()
MCAPI bool operator==(::NetworkItemStackDescriptor const &rhs) const
MCAPI::ItemStack getItemStack(::BlockPalette const &blockPalette) const
MCAPI ::Bedrock::Result< void > read(::ReadOnlyBinaryStream &stream)
Definition ReadOnlyBinaryStream.h:8