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
42 FishingHook();
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 virtual ~FishingHook() /*override*/ = default;
48
49 virtual void remove() /*override*/;
50
51 virtual void handleEntityEvent(::ActorEvent eventId, int data) /*override*/;
52
53 virtual float getShadowRadius() const /*override*/;
54
55 virtual ::ActorUniqueID getSourceUniqueID() const /*override*/;
56
57 virtual bool shouldDropDeathLoot() const /*override*/;
58
59 virtual void reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
60 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCAPI FishingHook(
66 ::ActorDefinitionGroup* definitions,
67 ::ActorDefinitionIdentifier const& definitionName,
68 ::EntityContext& entityContext
69 );
70
71 MCAPI void _fishPosEvent();
72
73 MCAPI void _fishTeaseEvent();
74
75 MCAPI void _fishhookEvent();
76
77 MCAPI int _getServerFishSpeed();
78
79 MCAPI float _getWaterPercentage();
80
81 MCAPI ::HitResult _hitCheck();
82
83 MCAPI void _pullCloser(::Actor& inEntity, float inSpeed);
84
85 MCAPI bool _serverHooked();
86
87 MCAPI bool _serverLured();
88
89 MCAPI void _updateGravity();
90
91 MCAPI ::Actor* getFishingTarget();
92
93 MCAPI ::Actor* getOwner();
94
95 MCAPI void postNormalTick();
96
97 MCAPI int retrieve();
98 // NOLINTEND
99
100public:
101 // static variables
102 // NOLINTBEGIN
103 MCAPI_C static float const& BOBBER_SIZE();
104 // NOLINTEND
105
106public:
107 // constructor thunks
108 // NOLINTBEGIN
109 MCAPI void* $ctor(
110 ::ActorDefinitionGroup* definitions,
111 ::ActorDefinitionIdentifier const& definitionName,
112 ::EntityContext& entityContext
113 );
114 // NOLINTEND
115
116public:
117 // virtual function thunks
118 // NOLINTBEGIN
119 MCAPI void $remove();
120
121 MCAPI void $handleEntityEvent(::ActorEvent eventId, int data);
122
123 MCFOLD float $getShadowRadius() const;
124
125 MCFOLD ::ActorUniqueID $getSourceUniqueID() const;
126
127 MCFOLD bool $shouldDropDeathLoot() const;
128
129 MCAPI void $reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params);
130
131
132 // NOLINTEND
133
134public:
135 // vftables
136 // NOLINTBEGIN
137 MCAPI static void** $vftable();
138 // NOLINTEND
139};
Definition ActorDefinitionGroup.h:35
Definition EntityContext.h:16
Definition HitResult.h:17
Definition ActorDefinitionIdentifier.h:15
Definition ActorUniqueID.h:5
Definition VariantParameterList.h:13