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 index) /*override*/;
30
31 virtual ::ResolvedItemIconInfo
32 getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const /*override*/;
33
34 virtual ~CompoundItem() /*override*/ = default;
35 // NOLINTEND
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI void _registerSpecialCompound(::ItemInstance const& item, ::CompoundType type);
41 // NOLINTEND
42
43public:
44 // static functions
45 // NOLINTBEGIN
46 MCAPI static ::std::string _getName(::CompoundType type);
47
48 MCAPI_C static ::std::string getCompoundFormula(::ItemInstance const& instance);
49
50 MCAPI static ::CompoundType getCompoundType(::ItemDescriptor const& itemDescriptor);
51
52 MCAPI static ::RecipeIngredient getIngredientForCompound(::CompoundType type);
53
54 MCAPI static ::ItemInstance getItemForCompound(::CompoundType type, int stackCount);
55
56 MCAPI static bool isCompoundItem(::ItemStackBase const& instance);
57 // NOLINTEND
58
59public:
60 // static variables
61 // NOLINTBEGIN
62 MCAPI static ::std::unordered_map<int, int>& mIdToSpecialCompound();
63
64 MCAPI static ::std::unordered_map<int, ::ItemInstance>& mTypeToSpecialCompound();
65 // NOLINTEND
66
67public:
68 // virtual function thunks
69 // NOLINTBEGIN
70 MCAPI bool $isValidAuxValue(int auxValue) const;
71
72 MCAPI ::std::string
73 $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const;
74
75 MCFOLD ::Item& $setIconInfo(::std::string const& name, int index);
76
77 MCAPI ::ResolvedItemIconInfo
78 $getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const;
79
80
81 // NOLINTEND
82
83public:
84 // vftables
85 // NOLINTBEGIN
86 MCAPI static void** $vftable();
87 // NOLINTEND
88};
Definition ChemistryItem.h:13
Definition CompoundItem.h:20
Definition CompoundTag.h:23
Definition ItemDescriptor.h:23
Definition ItemInstance.h:15
Definition ItemStackBase.h:44
Definition Item.h:69
Definition RecipeIngredient.h:17
Definition ResolvedItemIconInfo.h:8