LeviLamina
Loading...
Searching...
No Matches
DiggerItem.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
10class BaseGameVersion;
11class Block;
12class HashedString;
13class ItemStackBase;
14class Level;
15class RenderParams;
16namespace Bedrock::Safety { class RedactableString; }
17// clang-format on
18
19class DiggerItem : public ::Item {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 8, ::Item::Tier const&> mTier;
24 ::ll::TypedStorage<8, 8, ::HashedString const&> mBlockDestructionTag;
25 ::ll::TypedStorage<4, 4, int> mAttackDamage;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 DiggerItem& operator=(DiggerItem const&);
31 DiggerItem(DiggerItem const&);
32 DiggerItem();
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 // vIndex: 36
38 virtual int getAttackDamage() const /*override*/;
39
40 // vIndex: 38
41 virtual bool isHandEquipped() const /*override*/;
42
43 // vIndex: 55
44 virtual int getEnchantValue() const /*override*/;
45
46 // vIndex: 53
47 virtual bool isValidRepairItem(
48 ::ItemStackBase const&,
49 ::ItemStackBase const& repairItem,
50 ::BaseGameVersion const& baseGameVersion
51 ) const /*override*/;
52
53 // vIndex: 52
54 virtual void appendFormattedHovertext(
55 ::ItemStackBase const& stack,
56 ::Level& level,
58 bool const showCategory
59 ) const /*override*/;
60
61 // vIndex: 32
62 virtual bool canDestroySpecial(::Block const& block) const /*override*/;
63
64 // vIndex: 81
65 virtual float getDestroySpeed(::ItemStackBase const& item, ::Block const& block) const /*override*/;
66
67 // vIndex: 8
68 virtual void executeEvent(::ItemStackBase& item, ::std::string const& name, ::RenderParams& params) const
69 /*override*/;
70
71 // vIndex: 0
72 virtual ~DiggerItem() /*override*/;
73 // NOLINTEND
74
75public:
76 // destructor thunk
77 // NOLINTBEGIN
78 MCFOLD void $dtor();
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCFOLD int $getAttackDamage() const;
85
86 MCFOLD bool $isHandEquipped() const;
87
88 MCAPI int $getEnchantValue() const;
89
90 MCAPI bool $isValidRepairItem(
91 ::ItemStackBase const&,
92 ::ItemStackBase const& repairItem,
93 ::BaseGameVersion const& baseGameVersion
94 ) const;
95
96 MCAPI void $appendFormattedHovertext(
97 ::ItemStackBase const& stack,
98 ::Level& level,
100 bool const showCategory
101 ) const;
102
103 MCAPI bool $canDestroySpecial(::Block const& block) const;
104
105 MCAPI float $getDestroySpeed(::ItemStackBase const& item, ::Block const& block) const;
106
107 MCAPI void $executeEvent(::ItemStackBase& item, ::std::string const& name, ::RenderParams& params) const;
108 // NOLINTEND
109
110public:
111 // vftables
112 // NOLINTBEGIN
113 MCNAPI static void** $vftable();
114 // NOLINTEND
115};
Definition BaseGameVersion.h:8
Definition RedactableString.h:10
Definition Block.h:38
Definition DiggerItem.h:19
static MCAPI void ** $vftable()
Definition HashedString.h:5
Definition ItemStackBase.h:35
Definition Item.h:65
Definition Level.h:238
Definition RenderParams.h:30