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
40 // NOLINTEND
41
42public:
43 // prevent constructor by default
44 Arrow& operator=(Arrow const&);
45 Arrow(Arrow const&);
46 Arrow();
47
48public:
49 // virtual functions
50 // NOLINTBEGIN
51 // vIndex: 2
52 virtual void reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
53
54 // vIndex: 138
55 virtual void shoot(::Vec3 const& dir, float pow, float uncertainty, ::Vec3 const& baseSpeed) /*override*/;
56
57 // vIndex: 24
58 virtual void normalTick() /*override*/;
59
60 // vIndex: 39
61 virtual void playerTouch(::Player& player) /*override*/;
62
63 // vIndex: 120
64 virtual void setAuxValue(int aux) /*override*/;
65
66 // vIndex: 139
67 virtual ::ItemStack _getPickupItem() const /*override*/;
68
69 // vIndex: 137
70 virtual void addAdditionalSaveData(::CompoundTag& tag) const /*override*/;
71
72 // vIndex: 136
73 virtual void readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
74
75 // vIndex: 140
76 virtual void applyParticleColor(::Particle* p);
77
78 // vIndex: 141
79 virtual ::mce::Color getEffectColor();
80
81 // vIndex: 8
82 virtual ~Arrow() /*override*/ = default;
83 // NOLINTEND
84
85public:
86 // member functions
87 // NOLINTBEGIN
88 MCAPI Arrow(
89 ::ActorDefinitionGroup* definitions,
90 ::ActorDefinitionIdentifier const& definitionName,
91 ::EntityContext& entityContext
92 );
93
94 MCAPI void addMobEffect(::MobEffectInstance effect);
95
96 MCAPI int getAuxValue() const;
97
98 MCAPI void setCritical(bool isCrit);
99
100 MCAPI void setEnchantFlame(int level);
101
102 MCAPI void setEnchantPower(int level);
103
104 MCAPI void setEnchantPunch(int level);
105 // NOLINTEND
106
107public:
108 // constructor thunks
109 // NOLINTBEGIN
110 MCAPI void* $ctor(
111 ::ActorDefinitionGroup* definitions,
112 ::ActorDefinitionIdentifier const& definitionName,
113 ::EntityContext& entityContext
114 );
115 // NOLINTEND
116
117public:
118 // destructor thunk
119 // NOLINTBEGIN
120
121 // NOLINTEND
122
123public:
124 // virtual function thunks
125 // NOLINTBEGIN
126 MCAPI void $reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params);
127
128 MCAPI void $shoot(::Vec3 const& dir, float pow, float uncertainty, ::Vec3 const& baseSpeed);
129
130 MCAPI void $normalTick();
131
132 MCAPI void $playerTouch(::Player& player);
133
134 MCAPI void $setAuxValue(int aux);
135
136 MCAPI ::ItemStack $_getPickupItem() const;
137
138 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
139
140 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
141
142 MCAPI void $applyParticleColor(::Particle* p);
143
144 MCAPI ::mce::Color $getEffectColor();
145 // NOLINTEND
146
147public:
148 // vftables
149 // NOLINTBEGIN
150 MCAPI static void** $vftable();
151 // NOLINTEND
152};
Definition AbstractArrow.h:22
Definition ActorDefinitionGroup.h:27
Definition Arrow.h:25
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:13
Definition VariantParameterList.h:5
Definition Alias.h:14