LeviLamina
Loading...
Searching...
No Matches
UpdateTradePacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/ContainerType.h"
7#include "mc/network/MinecraftPacketIds.h"
8#include "mc/network/packet/Packet.h"
9#include "mc/platform/Result.h"
10#include "mc/world/ContainerID.h"
11
12// auto generated forward declare list
13// clang-format off
14class BinaryStream;
15class CompoundTag;
17struct ActorUniqueID;
18// clang-format on
19
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<1, 1, ::ContainerID> mContainerId;
25 ::ll::TypedStorage<1, 1, ::SharedTypes::Legacy::ContainerType> mType;
26 ::ll::TypedStorage<8, 32, ::std::string> mDisplayName;
27 ::ll::TypedStorage<4, 4, int> mSize;
28 ::ll::TypedStorage<4, 4, int> mTraderTier;
29 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mEntityUniqueID;
30 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mLastTradingPlayer;
31 ::ll::TypedStorage<8, 24, ::CompoundTag> mData;
32 ::ll::TypedStorage<1, 1, bool> mUseNewTradeScreen;
33 ::ll::TypedStorage<1, 1, bool> mUsingEconomyTrade;
34 // NOLINTEND
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 // vIndex: 1
40 virtual ::MinecraftPacketIds getId() const /*override*/;
41
42 // vIndex: 2
43 virtual ::std::string getName() const /*override*/;
44
45 // vIndex: 4
46 virtual void write(::BinaryStream& bitStream) const /*override*/;
47
48 // vIndex: 8
49 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
50
51 // vIndex: 0
52 virtual ~UpdateTradePacket() /*override*/;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI UpdateTradePacket();
59
61 ::ContainerID containerID,
62 ::SharedTypes::Legacy::ContainerType displayName,
63 int tag,
64 ::std::string const& entityID,
65 ::CompoundTag&& playerID,
66 ::ActorUniqueID const& traderTier,
67 ::ActorUniqueID const& useNewTradeScreen,
68 int usingEconomyTrade,
69 bool type,
70 bool size
71 );
72 // NOLINTEND
73
74public:
75 // constructor thunks
76 // NOLINTBEGIN
77 MCAPI void* $ctor();
78
79 MCAPI void* $ctor(
80 ::ContainerID containerID,
81 ::SharedTypes::Legacy::ContainerType displayName,
82 int tag,
83 ::std::string const& entityID,
84 ::CompoundTag&& playerID,
85 ::ActorUniqueID const& traderTier,
86 ::ActorUniqueID const& useNewTradeScreen,
87 int usingEconomyTrade,
88 bool type,
89 bool size
90 );
91 // NOLINTEND
92
93public:
94 // destructor thunk
95 // NOLINTBEGIN
96 MCAPI void $dtor();
97 // NOLINTEND
98
99public:
100 // virtual function thunks
101 // NOLINTBEGIN
102 MCAPI ::MinecraftPacketIds $getId() const;
103
104 MCAPI ::std::string $getName() const;
105
106 MCAPI void $write(::BinaryStream& bitStream) const;
107
108 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
109 // NOLINTEND
110
111public:
112 // vftables
113 // NOLINTBEGIN
114 MCAPI static void** $vftable();
115 // NOLINTEND
116};
Definition BinaryStream.h:10
Definition CompoundTag.h:13
Definition Packet.h:26
Definition ReadOnlyBinaryStream.h:8
Definition UpdateTradePacket.h:20
Definition ActorUniqueID.h:5