Skip to content
LeviMC
English
AutoLightDark
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/HandSlot.h"
7#include "mc/world/item/Item.h"
8
9// auto generated forward declare list
10// clang-format off
11class BaseGameVersion;
12class Block;
13class HashedString;
14class ItemStackBase;
15class Level;
16class RenderParams;
17struct ItemTier;
18namespace Bedrock::Safety { class RedactableString; }
19// clang-format on
20
21class DiggerItem : public ::Item {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 8, ::ItemTier const&> mTier;
26 ::ll::TypedStorage<8, 8, ::HashedString const&> mBlockDestructionTag;
27 ::ll::TypedStorage<4, 4, int> mAttackDamage;
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 DiggerItem& operator=(DiggerItem const&);
33 DiggerItem(DiggerItem const&);
34 DiggerItem();
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 virtual int getAttackDamage() const /*override*/;
40
41 virtual bool isHandEquipped() const /*override*/;
42
43 virtual int getEnchantValue() const /*override*/;
44
45 virtual bool isValidRepairItem(
46 ::ItemStackBase const&,
47 ::ItemStackBase const& repairItem,
48 ::BaseGameVersion const& baseGameVersion
49 ) const /*override*/;
50
51 virtual void appendFormattedHovertext(
52 ::ItemStackBase const& stack,
53 ::Level& level,
55 bool const showCategory
56 ) const /*override*/;
57
58 virtual bool canDestroySpecial(::Block const& block) const /*override*/;
59
60 virtual float getDestroySpeed(::ItemStackBase const& item, ::Block const& block) const /*override*/;
61
62 virtual void
63 executeEvent(::ItemStackBase& item, ::std::string const& name, ::HandSlot handSlot, ::RenderParams& params) const
64 /*override*/;
65
66 virtual ::std::string getEfficiencyHoverText(::ItemStackBase const& stack) const;
67
68 virtual ::std::string_view getEfficiencyLocalization() const;
69 // NOLINTEND
70
71public:
72 // virtual function thunks
73 // NOLINTBEGIN
74 MCNAPI int $getAttackDamage() const;
75
76 MCNAPI bool $isHandEquipped() const;
77
78 MCNAPI int $getEnchantValue() const;
79
80 MCAPI bool $isValidRepairItem(
81 ::ItemStackBase const&,
82 ::ItemStackBase const& repairItem,
83 ::BaseGameVersion const& baseGameVersion
84 ) const;
85
87 ::ItemStackBase const& stack,
88 ::Level& level,
90 bool const showCategory
91 ) const;
92
93 MCAPI bool $canDestroySpecial(::Block const& block) const;
94
95 MCNAPI float $getDestroySpeed(::ItemStackBase const& item, ::Block const& block) const;
96
97 MCNAPI void
98 $executeEvent(::ItemStackBase& item, ::std::string const& name, ::HandSlot handSlot, ::RenderParams& params) const;
99
100 MCNAPI ::std::string $getEfficiencyHoverText(::ItemStackBase const& stack) const;
101
102 MCNAPI ::std::string_view $getEfficiencyLocalization() const;
103
104
105 // NOLINTEND
106
107public:
108 // vftables
109 // NOLINTBEGIN
110 MCNAPI static void** $vftable();
111 // NOLINTEND
112};
Definition BaseGameVersion.h:8
Definition RedactableString.h:10
Definition Block.h:42
MCAPI int $getAttackDamage() const
MCAPI::std::string_view $getEfficiencyLocalization() const
MCAPI void $appendFormattedHovertext(::ItemStackBase const &stack, ::Level &level, ::Bedrock::Safety::RedactableString &hovertext, bool const showCategory) const
MCAPI int $getEnchantValue() const
MCAPI float $getDestroySpeed(::ItemStackBase const &item, ::Block const &block) const
MCAPI bool $isHandEquipped() const
MCAPI::std::string $getEfficiencyHoverText(::ItemStackBase const &stack) const
MCAPI void $executeEvent(::ItemStackBase &item, ::std::string const &name, ::HandSlot handSlot, ::RenderParams &params) const
static MCAPI void ** $vftable()
Definition HashedString.h:5
Definition ItemStackBase.h:45
Definition Level.h:255
Definition RenderParams.h:29
Definition ItemTier.h:5