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 ::std::string getEfficiencyHoverText(::ItemStackBase const& stack) const;
65
66 virtual ::std::string_view getEfficiencyLocalization() const;
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCFOLD int $getAttackDamage() const;
73
74 MCFOLD bool $isHandEquipped() const;
75
76 MCAPI int $getEnchantValue() const;
77
78 MCAPI bool $isValidRepairItem(
79 ::ItemStackBase const&,
80 ::ItemStackBase const& repairItem,
81 ::BaseGameVersion const& baseGameVersion
82 ) const;
83
84 MCAPI void $appendFormattedHovertext(
85 ::ItemStackBase const& stack,
86 ::Level& level,
88 bool const showCategory
89 ) const;
90
91 MCAPI bool $canDestroySpecial(::Block const& block) const;
92
93 MCAPI float $getDestroySpeed(::ItemStackBase const& item, ::Block const& block) const;
94
95 MCAPI void $executeEvent(::ItemStackBase& item, ::std::string const& name, ::RenderParams& params) const;
96
97 MCAPI ::std::string $getEfficiencyHoverText(::ItemStackBase const& stack) const;
98
99 MCAPI ::std::string_view $getEfficiencyLocalization() const;
100
101
102 // NOLINTEND
103
104public:
105 // vftables
106 // NOLINTBEGIN
107 MCAPI static void** $vftable();
108 // NOLINTEND
109};
Definition BaseGameVersion.h:8
Definition RedactableString.h:10
Definition Block.h:41
Definition HashedString.h:5
Definition ItemStackBase.h:44
Definition Level.h:254
Definition RenderParams.h:29
Definition ItemTier.h:5