LeviLamina
Loading...
Searching...
No Matches
CraftingDataPacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/network/MinecraftPacketIds.h"
7#include "mc/network/Packet.h"
8#include "mc/platform/Result.h"
9
10// auto generated forward declare list
11// clang-format off
12class BinaryStream;
15class Recipes;
19// clang-format on
20
21class CraftingDataPacket : public ::Packet {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 24, ::std::vector<::CraftingDataEntry>> mCraftingEntries;
26 ::ll::TypedStorage<8, 24, ::std::vector<::PotionMixDataEntry>> mPotionMixEntries;
27 ::ll::TypedStorage<8, 24, ::std::vector<::ContainerMixDataEntry>> mContainerMixEntries;
28 ::ll::TypedStorage<8, 24, ::std::vector<::MaterialReducerDataEntry>> mMaterialReducerEntries;
29 ::ll::TypedStorage<1, 1, bool> mClearRecipes;
30 // NOLINTEND
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual ::MinecraftPacketIds getId() const /*override*/;
36
37 virtual ::std::string_view getName() const /*override*/;
38
39 virtual void write(::BinaryStream& stream) const /*override*/;
40
41 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
42 // NOLINTEND
43
44public:
45 // member functions
46 // NOLINTBEGIN
47 MCAPI CraftingDataPacket();
48 // NOLINTEND
49
50public:
51 // static functions
52 // NOLINTBEGIN
53 MCAPI static ::std::unique_ptr<::CraftingDataPacket>
54 prepareFromRecipes(::Recipes const& levelRecipes, bool onlyCraftingRecipes);
55 // NOLINTEND
56
57public:
58 // constructor thunks
59 // NOLINTBEGIN
60 MCAPI void* $ctor();
61 // NOLINTEND
62
63public:
64 // virtual function thunks
65 // NOLINTBEGIN
66 MCFOLD ::MinecraftPacketIds $getId() const;
67
68 MCAPI ::std::string_view $getName() const;
69
70 MCAPI void $write(::BinaryStream& stream) const;
71
72 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
73
74
75 // NOLINTEND
76
77public:
78 // vftables
79 // NOLINTBEGIN
80 MCNAPI static void** $vftable();
81 // NOLINTEND
82};
Definition BinaryStream.h:11
Definition CraftingDataEntry.h:20
static MCAPI void ** $vftable()
Definition ReadOnlyBinaryStream.h:8
Definition Recipes.h:36
Definition ContainerMixDataEntry.h:13
Definition MaterialReducerDataEntry.h:15
Definition PotionMixDataEntry.h:13