Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI static ::std::string _getName(::CompoundType type);
40
41 MCNAPI static ::std::string getCompoundFormula(::ItemInstance const& instance);
42#endif
43
44 MCNAPI static ::CompoundType getCompoundType(::ItemDescriptor const& itemDescriptor);
45
46 MCNAPI static ::RecipeIngredient getIngredientForCompound(::CompoundType type);
47
48 MCNAPI static ::ItemInstance getItemForCompound(::CompoundType type, int stackCount);
49
50 MCNAPI static bool isCompoundItem(::ItemStackBase const& instance);
51
52 MCNAPI static void registerSpecialCompounds();
53
54 MCNAPI static void unregisterSpecialCompounds();
55 // NOLINTEND
56
57public:
58 // static variables
59 // NOLINTBEGIN
60 MCNAPI static ::std::unordered_map<int, int>& mIdToSpecialCompound();
61
62 MCNAPI static ::std::unordered_map<int, ::ItemInstance>& mTypeToSpecialCompound();
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68 MCNAPI bool $isValidAuxValue(int auxValue) const;
69
70 MCNAPI ::std::string
71 $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const;
72
73 MCNAPI ::Item& $setIconInfo(::std::string const& name, int id);
74
75 MCNAPI ::ResolvedItemIconInfo
76 $getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const;
77
78
79 // NOLINTEND
80
81public:
82 // vftables
83 // NOLINTBEGIN
84 MCNAPI static void** $vftable();
85 // NOLINTEND
86};
Definition ChemistryItem.h:13
Definition CompoundItem.h:20
MCAPI bool $isValidAuxValue(int auxValue) const
static MCAPI ::std::unordered_map< int, ::ItemInstance > & mTypeToSpecialCompound()
static MCAPI ::CompoundType getCompoundType(::ItemDescriptor const &itemDescriptor)
MCAPI::Item & $setIconInfo(::std::string const &name, int id)
static MCAPI void registerSpecialCompounds()
static MCAPI bool isCompoundItem(::ItemStackBase const &instance)
static MCAPI void ** $vftable()
static MCAPI ::std::unordered_map< int, int > & mIdToSpecialCompound()
static MCAPI ::ItemInstance getItemForCompound(::CompoundType type, int stackCount)
MCAPI::std::string $buildDescriptionId(::ItemDescriptor const &itemDescriptor, ::CompoundTag const *userData) const
static MCAPI void unregisterSpecialCompounds()
static MCAPI ::RecipeIngredient getIngredientForCompound(::CompoundType type)
MCAPI::ResolvedItemIconInfo $getIconInfo(::ItemStackBase const &item, int newAnimationFrame, bool inInventoryPane) const
Definition CompoundTag.h:18
Definition ItemDescriptor.h:24
Definition ItemInstance.h:15
Definition ItemStackBase.h:45
Definition Item.h:73
Definition RecipeIngredient.h:8
Definition ResolvedItemIconInfo.h:8