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 virtual void hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const /*override*/;
29
30 virtual bool canDestroySpecial(::Block const& block) const /*override*/;
31
32 virtual float getDestroySpeed(::ItemStackBase const& item, ::Block const& block) const /*override*/;
33
34 virtual int getEnchantSlot() const /*override*/;
35
36 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar) const
37 /*override*/;
38
39 virtual ::InteractionResult
40 _useOn(::ItemStack& instance, ::Actor& entity, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const
41 /*override*/;
42 // NOLINTEND
43
44public:
45 // static functions
46 // NOLINTBEGIN
47 MCAPI static void onShearsUsed(
48 ::BlockSource& region,
49 ::Level& level,
50 ::Actor* owner,
51 ::ItemStack& shears,
52 ::BlockPos const& pos,
53 ::SharedTypes::Legacy::LevelSoundEvent levelSoundEvent
54 );
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60 MCFOLD void $hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const;
61
62 MCAPI bool $canDestroySpecial(::Block const& block) const;
63
64 MCAPI float $getDestroySpeed(::ItemStackBase const& item, ::Block const& block) const;
65
66 MCFOLD int $getEnchantSlot() const;
67
68 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar) const;
69
70 MCAPI ::InteractionResult
71 $_useOn(::ItemStack& instance, ::Actor& entity, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const;
72
73
74 // NOLINTEND
75
76public:
77 // vftables
78 // NOLINTBEGIN
79 MCAPI static void** $vftable();
80 // NOLINTEND
81};
Definition Actor.h:125
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition Container.h:34
Definition InteractionResult.h:5
Definition ItemStackBase.h:52
Definition ItemStack.h:35
Definition Level.h:255
Definition Mob.h:57
Definition ShearsItem.h:24
Definition Vec3.h:10