Skip to content
LeviMC
English
AutoLightDark
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/HandSlot.h"
8#include "mc/world/item/Item.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class Block;
14class BlockPos;
15class BlockSource;
16class Container;
18class ItemStack;
19class ItemStackBase;
20class Level;
21class Mob;
22class Vec3;
23// clang-format on
24
25class ShearsItem : public ::Item {
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual void hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const /*override*/;
30
31 virtual bool canDestroySpecial(::Block const& block) const /*override*/;
32
33 virtual float getDestroySpeed(::ItemStackBase const& item, ::Block const& block) const /*override*/;
34
35 virtual int getEnchantSlot() const /*override*/;
36
37 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar) const
38 /*override*/;
39
40 virtual ::InteractionResult _useOn(
41 ::ItemStack& instance,
42 ::Actor& entity,
43 ::BlockPos pos,
44 uchar face,
45 ::HandSlot handSlot,
46 ::Vec3 const& clickPos
47 ) const /*override*/;
48 // NOLINTEND
49
50public:
51 // static functions
52 // NOLINTBEGIN
53 MCNAPI static void onShearsUsed(
54 ::BlockSource& region,
55 ::Level& level,
56 ::Actor* owner,
57 ::ItemStack& shears,
58 ::BlockPos const& pos,
59 ::SharedTypes::Legacy::LevelSoundEvent levelSoundEvent
60 );
61 // NOLINTEND
62
63public:
64 // virtual function thunks
65 // NOLINTBEGIN
66 MCNAPI void $hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const;
67
68 MCNAPI bool $canDestroySpecial(::Block const& block) const;
69
70 MCNAPI float $getDestroySpeed(::ItemStackBase const& item, ::Block const& block) const;
71
72 MCNAPI int $getEnchantSlot() const;
73
74 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar) const;
75
76 MCNAPI ::InteractionResult $_useOn(
77 ::ItemStack& instance,
78 ::Actor& entity,
79 ::BlockPos pos,
80 uchar face,
81 ::HandSlot handSlot,
82 ::Vec3 const& clickPos
83 ) const;
84
85
86 // NOLINTEND
87
88public:
89 // vftables
90 // NOLINTBEGIN
91 MCNAPI static void** $vftable();
92 // NOLINTEND
93};
Definition Actor.h:116
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition Container.h:36
Definition InteractionResult.h:5
Definition ItemStackBase.h:45
Definition ItemStack.h:26
Definition Level.h:255
Definition Mob.h:58
Definition ShearsItem.h:25
MCAPI int $getEnchantSlot() const
static MCAPI void ** $vftable()
MCAPI bool $canDestroySpecial(::Block const &block) const
MCAPI float $getDestroySpeed(::ItemStackBase const &item, ::Block const &block) const
static MCAPI void onShearsUsed(::BlockSource &region, ::Level &level, ::Actor *owner, ::ItemStack &shears, ::BlockPos const &pos, ::SharedTypes::Legacy::LevelSoundEvent levelSoundEvent)
MCAPI::InteractionResult $_useOn(::ItemStack &instance, ::Actor &entity, ::BlockPos pos, uchar face, ::HandSlot handSlot, ::Vec3 const &clickPos) const
MCAPI void $hurtActor(::ItemStack &item, ::Actor &actor, ::Mob &attacker) const
Definition Vec3.h:10