LeviLamina
Loading...
Searching...
No Matches
UnlockedRecipesServerComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Actor;
8class CompoundTag;
10// clang-format on
11
12class UnlockedRecipesServerComponent {
13public:
14 // UnlockedRecipesServerComponent inner types declare
15 // clang-format off
17 // clang-format on
18
19 // UnlockedRecipesServerComponent inner types define
20 struct UnlockingInstruction {
21 public:
22 // UnlockingInstruction inner types define
23 enum class Instruction : int {
24 UnlockRecipe = 0,
25 UnlockAllRecipes = 1,
26 RemoveRecipe = 2,
27 RemoveAllRecipes = 3,
28 };
29
30 public:
31 // member variables
32 // NOLINTBEGIN
35 // NOLINTEND
36
37 public:
38 // prevent constructor by default
39 UnlockingInstruction& operator=(UnlockingInstruction const&);
40 UnlockingInstruction(UnlockingInstruction const&);
41 UnlockingInstruction();
42
43 public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI ~UnlockingInstruction();
47 // NOLINTEND
48
49 public:
50 // destructor thunk
51 // NOLINTBEGIN
52 MCFOLD void $dtor();
53 // NOLINTEND
54 };
55
56public:
57 // member variables
58 // NOLINTBEGIN
59 ::ll::TypedStorage<1, 1, bool> mInventoryHasChanged;
60 ::ll::TypedStorage<1, 1, bool> mInitialDataSent;
61 ::ll::TypedStorage<4, 4, uint> mUsedContexts;
62 ::ll::TypedStorage<8, 64, ::std::unordered_set<::std::string>> mUnlockedRecipes;
63 ::ll::TypedStorage<8, 64, ::std::unordered_set<int>> mChangedInventorySlots;
64 ::ll::TypedStorage<8, 24, ::std::vector<::UnlockedRecipesServerComponent::UnlockingInstruction>>
65 mUnlockingInstructions;
66 // NOLINTEND
67
68public:
69 // prevent constructor by default
70 UnlockedRecipesServerComponent& operator=(UnlockedRecipesServerComponent const&);
71 UnlockedRecipesServerComponent();
72
73public:
74 // member functions
75 // NOLINTBEGIN
76 MCAPI UnlockedRecipesServerComponent(::UnlockedRecipesServerComponent const&);
77
78 MCAPI void addAdditionalSaveData(::CompoundTag& tag) const;
79
80 MCAPI void addUnlockingInstruction(::UnlockedRecipesServerComponent::UnlockingInstruction instruction);
81
82 MCAPI bool isRecipeUnlocked(::std::string const& recipeId) const;
83
84 MCAPI ::UnlockedRecipesServerComponent& operator=(::UnlockedRecipesServerComponent&&);
85
86 MCAPI void readAdditionalSaveData(::Actor&, ::CompoundTag const& tag, ::DataLoadHelper&);
87
88 MCAPI ~UnlockedRecipesServerComponent();
89 // NOLINTEND
90
91public:
92 // static variables
93 // NOLINTBEGIN
94 MCAPI static ::std::string const& COMPONENT_TAG();
95
96 MCAPI static ::std::string const& UNLOCKED_RECIPES_TAG();
97
98 MCAPI static ::std::string const& USED_CONTEXTS_TAG();
99 // NOLINTEND
100
101public:
102 // constructor thunks
103 // NOLINTBEGIN
104 MCAPI void* $ctor(::UnlockedRecipesServerComponent const&);
105 // NOLINTEND
106
107public:
108 // destructor thunk
109 // NOLINTBEGIN
110 MCAPI void $dtor();
111 // NOLINTEND
112};
Definition Actor.h:105
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20
Definition UnlockedRecipesServerComponent.h:20
Definition Alias.h:14