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