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 virtual int getAttackDamage() const /*override*/;
39
40 virtual bool isHandEquipped() const /*override*/;
41
42 virtual int getEnchantValue() const /*override*/;
43
44 virtual bool isValidRepairItem(
45 ::ItemStackBase const&,
46 ::ItemStackBase const& repairItem,
47 ::BaseGameVersion const& baseGameVersion
48 ) const /*override*/;
49
50 virtual void appendFormattedHovertext(
51 ::ItemStackBase const& stack,
52 ::Level& level,
54 bool const showCategory
55 ) const /*override*/;
56
57 virtual bool canDestroySpecial(::Block const& block) const /*override*/;
58
59 virtual float getDestroySpeed(::ItemStackBase const& item, ::Block const& block) const /*override*/;
60
61 virtual void executeEvent(::ItemStackBase& item, ::std::string const& name, ::RenderParams& params) const
62 /*override*/;
63
64 virtual ~DiggerItem() /*override*/;
65 // NOLINTEND
66
67public:
68 // destructor thunk
69 // NOLINTBEGIN
70 MCFOLD void $dtor();
71 // NOLINTEND
72
73public:
74 // virtual function thunks
75 // NOLINTBEGIN
76 MCFOLD int $getAttackDamage() const;
77
78 MCFOLD bool $isHandEquipped() const;
79
80 MCAPI int $getEnchantValue() const;
81
82 MCAPI bool $isValidRepairItem(
83 ::ItemStackBase const&,
84 ::ItemStackBase const& repairItem,
85 ::BaseGameVersion const& baseGameVersion
86 ) const;
87
88 MCAPI void $appendFormattedHovertext(
89 ::ItemStackBase const& stack,
90 ::Level& level,
92 bool const showCategory
93 ) const;
94
95 MCAPI bool $canDestroySpecial(::Block const& block) const;
96
97 MCAPI float $getDestroySpeed(::ItemStackBase const& item, ::Block const& block) const;
98
99 MCAPI void $executeEvent(::ItemStackBase& item, ::std::string const& name, ::RenderParams& params) const;
100
101
102 // NOLINTEND
103
104public:
105 // vftables
106 // NOLINTBEGIN
107 MCNAPI static void** $vftable();
108 // NOLINTEND
109};
Definition BaseGameVersion.h:8
Definition RedactableString.h:10
Definition Block.h:43
static MCAPI void ** $vftable()
Definition HashedString.h:5
Definition ItemStackBase.h:44
Definition Level.h:249
Definition RenderParams.h:30
Definition ItemTier.h:5