14class UnlockedRecipesClientComponent {
18 ::ll::TypedStorage<4, 4, int> mUnlockedCategories;
19 ::ll::TypedStorage<4, 4, int> mNewlyUnlockedCategories;
20 ::ll::TypedStorage<8, 64, ::std::unordered_set<int>> mUnlockedItems;
21 ::ll::TypedStorage<8, 64, ::std::unordered_set<::std::string>> mUnlockedRecipes;
22 ::ll::TypedStorage<8, 64, ::std::unordered_set<::std::string>> mNewlyUnlockedRecipes;
29 UnlockedRecipesClientComponent& operator=(UnlockedRecipesClientComponent
const&);
30 UnlockedRecipesClientComponent(UnlockedRecipesClientComponent
const&);
37 MCAPI UnlockedRecipesClientComponent();
39 MCAPI
void addUnlockedRecipes(
41 ::std::vector<::std::string>
const& unlockedRecipeIds,
45 MCAPI
void clearNewlyUnlockedData();
47 MCFOLD ::std::unordered_set<::std::string>
const& getNewlyUnlockedRecipes()
const;
49 MCAPI
bool isCategoryUnlocked(::SharedTypes::CreativeItemCategory category)
const;
51 MCAPI
bool isItemUnlocked(
int idAux)
const;
54 MCAPI
bool isRecipeUnlocked(
::Recipe const& recipe)
const;
56 MCAPI
bool isRecipeUnlocked(::std::string
const& recipeId)
const;
59 MCAPI ::UnlockedRecipesClientComponent& operator=(::UnlockedRecipesClientComponent&&);
61 MCAPI
void removeAllRecipes();
63 MCAPI
void removeRecipes(
::Recipes const& recipes, ::std::vector<::std::string>
const& unlockedRecipeIds);
65 MCAPI ~UnlockedRecipesClientComponent();