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