LeviLamina
Loading...
Searching...
No Matches
ShearsItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
7#include "mc/world/item/Item.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Block;
13class BlockPos;
14class BlockSource;
15class Container;
17class ItemStack;
18class ItemStackBase;
19class Level;
20class Mob;
21class Vec3;
22// clang-format on
23
24class ShearsItem : public ::Item {
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 // vIndex: 82
29 virtual void hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const /*override*/;
30
31 // vIndex: 32
32 virtual bool canDestroySpecial(::Block const& block) const /*override*/;
33
34 // vIndex: 81
35 virtual float getDestroySpeed(::ItemStackBase const& item, ::Block const& block) const /*override*/;
36
37 // vIndex: 54
38 virtual int getEnchantSlot() const /*override*/;
39
40 // vIndex: 78
41 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar) const
42 /*override*/;
43
44 // vIndex: 120
45 virtual ::InteractionResult
46 _useOn(::ItemStack& instance, ::Actor& entity, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const
47 /*override*/;
48
49 // vIndex: 0
50 virtual ~ShearsItem() /*override*/ = default;
51 // NOLINTEND
52
53public:
54 // static functions
55 // NOLINTBEGIN
56 MCAPI static void onShearsUsed(
57 ::BlockSource& region,
58 ::Level& level,
59 ::Actor* owner,
60 ::ItemStack& shears,
61 ::BlockPos const& pos,
62 ::SharedTypes::Legacy::LevelSoundEvent levelSoundEvent
63 );
64 // NOLINTEND
65
66public:
67 // virtual function thunks
68 // NOLINTBEGIN
69 MCFOLD void $hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const;
70
71 MCAPI bool $canDestroySpecial(::Block const& block) const;
72
73 MCAPI float $getDestroySpeed(::ItemStackBase const& item, ::Block const& block) const;
74
75 MCFOLD int $getEnchantSlot() const;
76
77 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar) const;
78
79 MCAPI ::InteractionResult
80 $_useOn(::ItemStack& instance, ::Actor& entity, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const;
81 // NOLINTEND
82
83public:
84 // vftables
85 // NOLINTBEGIN
86 MCAPI static void** $vftable();
87 // NOLINTEND
88};
Definition Actor.h:103
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition Container.h:30
Definition InteractionResult.h:5
Definition ItemStackBase.h:35
Definition ItemStack.h:25
Definition Item.h:65
Definition Level.h:238
Definition Mob.h:47
Definition ShearsItem.h:24
Definition Vec3.h:10