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& repairItem,
46 ::ItemStackBase 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 // NOLINTEND
64
65public:
66 // member functions
67 // NOLINTBEGIN
68 MCAPI DiggerItem(
69 ::std::string const& name,
70 short id,
71 int attackDamage,
72 ::ItemTier const& tier,
73 ::HashedString const& blockDestructionTag
74 );
75 // NOLINTEND
76
77public:
78 // constructor thunks
79 // NOLINTBEGIN
80 MCAPI void* $ctor(
81 ::std::string const& name,
82 short id,
83 int attackDamage,
84 ::ItemTier const& tier,
85 ::HashedString const& blockDestructionTag
86 );
87 // NOLINTEND
88
89public:
90 // virtual function thunks
91 // NOLINTBEGIN
92 MCFOLD int $getAttackDamage() const;
93
94 MCFOLD bool $isHandEquipped() const;
95
96 MCAPI int $getEnchantValue() const;
97
98 MCAPI bool $isValidRepairItem(
99 ::ItemStackBase const& repairItem,
100 ::ItemStackBase const& baseGameVersion,
101 ::BaseGameVersion const&
102 ) const;
103
104 MCAPI void $appendFormattedHovertext(
105 ::ItemStackBase const& stack,
106 ::Level& level,
108 bool const showCategory
109 ) const;
110
111 MCAPI bool $canDestroySpecial(::Block const& block) const;
112
113 MCAPI float $getDestroySpeed(::ItemStackBase const& item, ::Block const& block) const;
114
115 MCAPI void $executeEvent(::ItemStackBase& item, ::std::string const& name, ::RenderParams& params) const;
116
117
118 // NOLINTEND
119
120public:
121 // vftables
122 // NOLINTBEGIN
123 MCAPI static void** $vftable();
124 // NOLINTEND
125};
Definition BaseGameVersion.h:13
Definition RedactableString.h:10
Definition Block.h:69
Definition HashedString.h:5
Definition ItemStackBase.h:52
Definition Level.h:255
Definition RenderParams.h:30
Definition ItemTier.h:5