LeviLamina
Loading...
Searching...
No Matches
Arrow.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/ActorInitializationMethod.h"
7#include "mc/world/actor/projectile/AbstractArrow.h"
8
9// auto generated forward declare list
10// clang-format off
12class CompoundTag;
13class DataLoadHelper;
14class EntityContext;
15class ItemStack;
17class Particle;
18class Player;
19class Vec3;
22namespace mce { class Color; }
23// clang-format on
24
25class Arrow : public ::AbstractArrow {
26public:
27 // Arrow inner types define
28 enum class Data : int {
29 IsCritical = 16,
30 TippedAuxValue = 18,
31 };
32
33public:
34 // member variables
35 // NOLINTBEGIN
36 ::ll::TypedStorage<4, 4, int> mLife;
37 ::ll::TypedStorage<4, 4, int> mEnchantFlame;
38 ::ll::TypedStorage<4, 4, int> mEnchantInfinity;
39 ::ll::TypedStorage<8, 24, ::std::vector<::MobEffectInstance>> mMobEffects;
40 // NOLINTEND
41
42public:
43 // prevent constructor by default
44 Arrow();
45
46public:
47 // virtual functions
48 // NOLINTBEGIN
49 // vIndex: 2
50 virtual void reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
51
52 // vIndex: 138
53 virtual void shoot(::Vec3 const& dir, float pow, float uncertainty, ::Vec3 const& baseSpeed) /*override*/;
54
55 // vIndex: 24
56 virtual void normalTick() /*override*/;
57
58 // vIndex: 39
59 virtual void playerTouch(::Player& player) /*override*/;
60
61 // vIndex: 120
62 virtual void setAuxValue(int aux) /*override*/;
63
64 // vIndex: 139
65 virtual ::ItemStack _getPickupItem() const /*override*/;
66
67 // vIndex: 137
68 virtual void addAdditionalSaveData(::CompoundTag& tag) const /*override*/;
69
70 // vIndex: 136
71 virtual void readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
72
73 // vIndex: 140
74 virtual void applyParticleColor(::Particle* p);
75
76 // vIndex: 141
77 virtual ::mce::Color getEffectColor();
78
79 // vIndex: 8
80 virtual ~Arrow() /*override*/ = default;
81 // NOLINTEND
82
83public:
84 // member functions
85 // NOLINTBEGIN
86 MCAPI Arrow(
87 ::ActorDefinitionGroup* definitions,
88 ::ActorDefinitionIdentifier const& definitionName,
89 ::EntityContext& entityContext
90 );
91
92 MCAPI void addMobEffect(::MobEffectInstance effect);
93
94 MCAPI int getAuxValue() const;
95
96 MCAPI void setCritical(bool isCrit);
97
98 MCAPI void setEnchantFlame(int level);
99
100 MCAPI void setEnchantPower(int level);
101
102 MCAPI void setEnchantPunch(int level);
103 // NOLINTEND
104
105public:
106 // constructor thunks
107 // NOLINTBEGIN
108 MCAPI void* $ctor(
109 ::ActorDefinitionGroup* definitions,
110 ::ActorDefinitionIdentifier const& definitionName,
111 ::EntityContext& entityContext
112 );
113 // NOLINTEND
114
115public:
116 // virtual function thunks
117 // NOLINTBEGIN
118 MCAPI void $reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params);
119
120 MCAPI void $shoot(::Vec3 const& dir, float pow, float uncertainty, ::Vec3 const& baseSpeed);
121
122 MCAPI void $normalTick();
123
124 MCAPI void $playerTouch(::Player& player);
125
126 MCAPI void $setAuxValue(int aux);
127
128 MCAPI ::ItemStack $_getPickupItem() const;
129
130 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
131
132 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
133
134 MCAPI void $applyParticleColor(::Particle* p);
135
136 MCAPI ::mce::Color $getEffectColor();
137 // NOLINTEND
138
139public:
140 // vftables
141 // NOLINTBEGIN
142 MCNAPI static void** $vftable();
143 // NOLINTEND
144};
Definition AbstractArrow.h:22
Definition ActorDefinitionGroup.h:29
Definition Arrow.h:25
static MCAPI void ** $vftable()
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition EntityContext.h:16
Definition ItemStack.h:25
Definition MobEffectInstance.h:15
Definition Particle.h:15
Definition Player.h:119
Definition Vec3.h:10
Definition ActorDefinitionIdentifier.h:15
Definition VariantParameterList.h:5