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/Item.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class ItemStack;
12class Mob;
13class Player;
14// clang-format on
15
16class RangedWeaponItem : public ::Item {
17public:
18 // prevent constructor by default
19 RangedWeaponItem();
20
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 virtual void releaseUsing(::ItemStack& item, ::Player* player, int durationLeft) const /*override*/;
25
26 virtual ::ItemStack& use(::ItemStack& instance, ::Player& player) const /*override*/;
27
28 virtual int
29 getAnimationFrameFor(::Mob* holder, bool asItemEntity, ::ItemStack const* item, bool shouldAnimate) const
30 /*override*/;
31
32 virtual int getEnchantValue() const /*override*/;
33
34 virtual void hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const /*override*/;
35 // NOLINTEND
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI RangedWeaponItem(::std::string const& name, short id);
41
42 MCAPI float getLaunchPower(int durationLeft, int maxDrawDuration, int maxUseDuration) const;
43 // NOLINTEND
44
45public:
46 // constructor thunks
47 // NOLINTBEGIN
48 MCAPI void* $ctor(::std::string const& name, short id);
49 // NOLINTEND
50
51public:
52 // virtual function thunks
53 // NOLINTBEGIN
54 MCAPI void $releaseUsing(::ItemStack& item, ::Player* player, int durationLeft) const;
55
56 MCAPI ::ItemStack& $use(::ItemStack& instance, ::Player& player) const;
57
58 MCAPI int
59 $getAnimationFrameFor(::Mob* holder, bool asItemEntity, ::ItemStack const* item, bool shouldAnimate) const;
60
61 MCFOLD int $getEnchantValue() const;
62
63 MCFOLD void $hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const;
64
65
66 // NOLINTEND
67
68public:
69 // vftables
70 // NOLINTBEGIN
71 MCNAPI static void** $vftable();
72 // NOLINTEND
73};
Definition Actor.h:125
Definition ItemStack.h:35
Definition Mob.h:57
Definition Player.h:137
static MCAPI void ** $vftable()