LeviLamina
Loading...
Searching...
No Matches
AbstractCompassItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/Item.h"
7
8// auto generated forward declare list
9// clang-format off
11class ItemStack;
12class ItemStackBase;
13class Mob;
15// clang-format on
16
17class AbstractCompassItem : public ::Item {
18public:
19 // AbstractCompassItem inner types define
20 using GetSpriteCalculatorFunction = ::CompassSpriteCalculator& (*)(::Mob&);
21
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<4, 4, int> mAtlasWidth;
26 ::ll::TypedStorage<4, 4, int> mAtlasHeight;
27 ::ll::TypedStorage<8, 8, ::CompassSpriteCalculator& (*)(::Mob&)> mGetSpriteCalculator;
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 AbstractCompassItem();
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 virtual ::ResolvedItemIconInfo
38 getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const /*override*/;
39
40 virtual int getAnimationFrameFor(::Mob* holder, bool, ::ItemStack const*, bool) const /*override*/;
41
42 virtual int getEnchantSlot() const /*override*/;
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
48 MCAPI
49 AbstractCompassItem(::std::string const& name, int id, ::CompassSpriteCalculator& (*getSpriteCalculator)(::Mob&));
50
51#ifdef LL_PLAT_C
52 MCFOLD void setTextureDimensions(ushort texSizeW, ushort texSizeH);
53#endif
54 // NOLINTEND
55
56public:
57 // constructor thunks
58 // NOLINTBEGIN
59 MCAPI void* $ctor(::std::string const& name, int id, ::CompassSpriteCalculator& (*getSpriteCalculator)(::Mob&));
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCAPI ::ResolvedItemIconInfo
66 $getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const;
67
68 MCAPI int $getAnimationFrameFor(::Mob* holder, bool, ::ItemStack const*, bool) const;
69
70 MCAPI int $getEnchantSlot() const;
71
72
73 // NOLINTEND
74
75public:
76 // vftables
77 // NOLINTBEGIN
78 MCNAPI static void** $vftable();
79 // NOLINTEND
80};
static MCAPI void ** $vftable()
Definition CompassSpriteCalculator.h:12
Definition ItemStackBase.h:52
Definition ItemStack.h:35
Definition Mob.h:57
Definition ResolvedItemIconInfo.h:8