LeviLamina
Loading...
Searching...
No Matches
CompoundItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/ChemistryItem.h"
7#include "mc/world/item/CompoundType.h"
8
9// auto generated forward declare list
10// clang-format off
11class CompoundTag;
12class Item;
13class ItemDescriptor;
14class ItemInstance;
15class ItemStackBase;
18// clang-format on
19
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 virtual bool isValidAuxValue(int auxValue) const /*override*/;
25
26 virtual ::std::string
27 buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const /*override*/;
28
29 virtual ::Item& setIconInfo(::std::string const& name, int id) /*override*/;
30
31 virtual ::ResolvedItemIconInfo
32 getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const /*override*/;
33 // NOLINTEND
34
35public:
36 // static functions
37 // NOLINTBEGIN
38#ifdef LL_PLAT_C
39 MCAPI static ::std::string _getName(::CompoundType type);
40#endif
41
42 MCAPI static void _registerSpecialCompound(::ItemInstance const& item, ::CompoundType type);
43
44#ifdef LL_PLAT_C
45 MCAPI static ::std::string getCompoundFormula(::ItemInstance const& instance);
46#endif
47
48 MCAPI static ::CompoundType getCompoundType(::ItemDescriptor const& itemDescriptor);
49
50 MCAPI static ::RecipeIngredient getIngredientForCompound(::CompoundType type);
51
52 MCAPI static ::ItemInstance getItemForCompound(::CompoundType type, int stackCount);
53
54 MCAPI static bool isCompoundItem(::ItemStackBase const& instance);
55
56 MCAPI static void registerSpecialCompounds();
57
58 MCAPI static void unregisterSpecialCompounds();
59 // NOLINTEND
60
61public:
62 // static variables
63 // NOLINTBEGIN
64 MCAPI static ::std::unordered_map<int, int>& mIdToSpecialCompound();
65
66 MCAPI static ::std::unordered_map<int, ::ItemInstance>& mTypeToSpecialCompound();
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCAPI bool $isValidAuxValue(int auxValue) const;
73
74 MCAPI ::std::string
75 $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const;
76
77 MCFOLD ::Item& $setIconInfo(::std::string const& name, int id);
78
79 MCAPI ::ResolvedItemIconInfo
80 $getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const;
81
82
83 // NOLINTEND
84
85public:
86 // vftables
87 // NOLINTBEGIN
88 MCAPI static void** $vftable();
89 // NOLINTEND
90};
Definition ChemistryItem.h:13
Definition CompoundItem.h:20
Definition CompoundTag.h:18
Definition ItemDescriptor.h:25
Definition ItemInstance.h:15
Definition ItemStackBase.h:44
Definition Item.h:71
Definition RecipeIngredient.h:8
Definition ResolvedItemIconInfo.h:8