Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ShovelItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/DiggerItem.h"
7#include "mc/world/item/HandSlot.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class BlockPos;
14class ItemStack;
15class Vec3;
16struct ItemTier;
17// clang-format on
18
19class ShovelItem : public ::DiggerItem {
20public:
21 // prevent constructor by default
22 ShovelItem();
23
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 virtual int getEnchantSlot() const /*override*/;
28
29 virtual ::InteractionResult _useOn(
30 ::ItemStack& instance,
31 ::Actor& entity,
32 ::BlockPos pos,
33 uchar face,
34 ::HandSlot handSlot,
35 ::Vec3 const& clickPos
36 ) const /*override*/;
37
38 virtual ::std::string_view getEfficiencyLocalization() const /*override*/;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCNAPI ShovelItem(::std::string const& name, int id, ::ItemTier const& tier);
45 // NOLINTEND
46
47public:
48 // static functions
49 // NOLINTBEGIN
50 MCNAPI static ::InteractionResult useShovelOn(::ItemStack& instance, ::Actor& entity, ::BlockPos pos, uchar face);
51 // NOLINTEND
52
53public:
54 // constructor thunks
55 // NOLINTBEGIN
56 MCNAPI void* $ctor(::std::string const& name, int id, ::ItemTier const& tier);
57 // NOLINTEND
58
59public:
60 // virtual function thunks
61 // NOLINTBEGIN
62 MCNAPI int $getEnchantSlot() const;
63
64 MCNAPI ::InteractionResult $_useOn(
65 ::ItemStack& instance,
66 ::Actor& entity,
67 ::BlockPos pos,
68 uchar face,
69 ::HandSlot handSlot,
70 ::Vec3 const& clickPos
71 ) const;
72
73 MCNAPI ::std::string_view $getEfficiencyLocalization() const;
74
75
76 // NOLINTEND
77
78public:
79 // vftables
80 // NOLINTBEGIN
81 MCAPI static void** $vftable();
82 // NOLINTEND
83};
Definition Actor.h:116
Definition BlockPos.h:14
static MCAPI void ** $vftable()
Definition InteractionResult.h:5
Definition ItemStack.h:26
MCAPI::InteractionResult $_useOn(::ItemStack &instance, ::Actor &entity, ::BlockPos pos, uchar face, ::HandSlot handSlot, ::Vec3 const &clickPos) const
MCAPI ShovelItem(::std::string const &name, int id, ::ItemTier const &tier)
static MCAPI ::InteractionResult useShovelOn(::ItemStack &instance, ::Actor &entity, ::BlockPos pos, uchar face)
MCAPI int $getEnchantSlot() const
MCAPI void * $ctor(::std::string const &name, int id, ::ItemTier const &tier)
MCAPI::std::string_view $getEfficiencyLocalization() const
Definition Vec3.h:10
Definition ItemTier.h:5