LeviLamina
Loading...
Searching...
No Matches
FishingHook.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/Actor.h"
7#include "mc/world/actor/ActorEvent.h"
8#include "mc/world/actor/ActorInitializationMethod.h"
9#include "mc/world/level/BlockPos.h"
10
11// auto generated forward declare list
12// clang-format off
14class EntityContext;
15class HitResult;
17struct ActorUniqueID;
19// clang-format on
20
21class FishingHook : public ::Actor {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<4, 4, float const> SHOOT_SPEED;
26 ::ll::TypedStorage<4, 4, float const> SHOOT_POWER;
27 ::ll::TypedStorage<4, 4, int const> NUM_PERCENTAGE_STEPS;
28 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
29 ::ll::TypedStorage<4, 4, float> mBobTimer;
30 ::ll::TypedStorage<4, 4, float> mFishAngle;
31 ::ll::TypedStorage<4, 4, int> mLife;
32 ::ll::TypedStorage<4, 4, int> mFlightTime;
33 ::ll::TypedStorage<4, 4, int> mTimeUntilHooked;
34 ::ll::TypedStorage<4, 4, int> mTimeUntilLured;
35 ::ll::TypedStorage<4, 4, int> mTimeUntilNibble;
36 ::ll::TypedStorage<4, 4, int> mFishingSpeed;
37 ::ll::TypedStorage<1, 1, bool> mInGround;
38 // NOLINTEND
39
40public:
41 // prevent constructor by default
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 // vIndex: 8
48 virtual ~FishingHook() /*override*/ = default;
49
50 // vIndex: 11
51 virtual void remove() /*override*/;
52
53 // vIndex: 69
54 virtual void handleEntityEvent(::ActorEvent eventId, int data) /*override*/;
55
56 // vIndex: 35
57 virtual float getShadowRadius() const /*override*/;
58
59 // vIndex: 84
60 virtual ::ActorUniqueID getSourceUniqueID() const /*override*/;
61
62 // vIndex: 124
63 virtual bool shouldDropDeathLoot() const /*override*/;
64
65 // vIndex: 2
66 virtual void reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
67 // NOLINTEND
68
69public:
70 // member functions
71 // NOLINTBEGIN
72 MCAPI FishingHook(
73 ::ActorDefinitionGroup* definitions,
74 ::ActorDefinitionIdentifier const& definitionName,
75 ::EntityContext& entityContext
76 );
77
78 MCAPI void _fishPosEvent();
79
80 MCAPI void _fishTeaseEvent();
81
82 MCAPI void _fishhookEvent();
83
84 MCAPI int _getServerFishSpeed();
85
86 MCAPI float _getWaterPercentage();
87
88 MCAPI ::HitResult _hitCheck();
89
90 MCAPI void _pullCloser(::Actor& inEntity, float inSpeed);
91
92 MCAPI bool _serverHooked();
93
94 MCAPI bool _serverLured();
95
96 MCAPI void _updateGravity();
97
98 MCAPI ::Actor* getFishingTarget();
99
100 MCAPI ::Actor* getOwner();
101
102 MCAPI void postNormalTick();
103
104 MCAPI int retrieve();
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 // virtual function thunks
119 // NOLINTBEGIN
120 MCAPI void $remove();
121
122 MCAPI void $handleEntityEvent(::ActorEvent eventId, int data);
123
124 MCFOLD float $getShadowRadius() const;
125
126 MCFOLD ::ActorUniqueID $getSourceUniqueID() const;
127
128 MCFOLD bool $shouldDropDeathLoot() const;
129
130 MCAPI void $reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params);
131 // NOLINTEND
132
133public:
134 // vftables
135 // NOLINTBEGIN
136 MCNAPI static void** $vftable();
137 // NOLINTEND
138};
Definition ActorDefinitionGroup.h:32
Definition Actor.h:102
Definition EntityContext.h:16
Definition FishingHook.h:21
static MCAPI void ** $vftable()
Definition HitResult.h:17
Definition ActorDefinitionIdentifier.h:15
Definition ActorUniqueID.h:5
Definition VariantParameterList.h:13