LeviLamina
Loading...
Searching...
No Matches
RangedWeaponItem.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 Actor;
12class ItemStack;
13class Mob;
14class Player;
15// clang-format on
16
17class RangedWeaponItem : public ::Item {
18public:
19 // virtual functions
20 // NOLINTBEGIN
21 virtual void releaseUsing(::ItemStack& item, ::Player* player, int durationLeft) const /*override*/;
22
23 virtual ::ItemStack& use(::ItemStack& instance, ::Player& player, ::HandSlot handSlot) const /*override*/;
24
25 virtual int
26 getAnimationFrameFor(::Mob* holder, bool asItemEntity, ::ItemStack const* item, bool shouldAnimate) const
27 /*override*/;
28
29 virtual int getEnchantValue() const /*override*/;
30
31 virtual void hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const /*override*/;
32 // NOLINTEND
33
34public:
35 // virtual function thunks
36 // NOLINTBEGIN
37 MCAPI void $releaseUsing(::ItemStack& item, ::Player* player, int durationLeft) const;
38
39 MCAPI ::ItemStack& $use(::ItemStack& instance, ::Player& player, ::HandSlot handSlot) const;
40
41 MCAPI int
42 $getAnimationFrameFor(::Mob* holder, bool asItemEntity, ::ItemStack const* item, bool shouldAnimate) const;
43
44 MCFOLD int $getEnchantValue() const;
45
46 MCFOLD void $hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const;
47
48
49 // NOLINTEND
50
51public:
52 // vftables
53 // NOLINTBEGIN
54 MCNAPI static void** $vftable();
55 // NOLINTEND
56};
Definition Actor.h:113
Definition ItemStack.h:26
Definition Mob.h:56
Definition Player.h:129
Definition RangedWeaponItem.h:17
static MCAPI void ** $vftable()