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
10
class
Actor
;
11
class
ItemStack
;
12
class
Mob
;
13
class
Player
;
14
// clang-format on
15
16
class
RangedWeaponItem :
public
::Item {
17
public
:
18
// prevent constructor by default
19
RangedWeaponItem();
20
21
public
:
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
37
public
:
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
45
public
:
46
// constructor thunks
47
// NOLINTBEGIN
48
MCAPI
void
* $ctor(::std::string
const
& name,
short
id
);
49
// NOLINTEND
50
51
public
:
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
68
public
:
69
// vftables
70
// NOLINTBEGIN
71
MCNAPI
static
void
**
$vftable
();
72
// NOLINTEND
73
};
Actor
Definition
Actor.h:125
ItemStack
Definition
ItemStack.h:35
Mob
Definition
Mob.h:57
Player
Definition
Player.h:137
RangedWeaponItem::$vftable
static MCAPI void ** $vftable()
src
mc
world
item
RangedWeaponItem.h
Generated on
for LeviLamina by
1.16.1