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;
16class Vec3;
18struct ActorUniqueID;
20// clang-format on
21
22class FishingHook : public ::Actor {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<4, 4, float const> SHOOT_SPEED;
27 ::ll::TypedStorage<4, 4, float const> SHOOT_POWER;
28 ::ll::TypedStorage<4, 4, int const> NUM_PERCENTAGE_STEPS;
29 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
30 ::ll::TypedStorage<4, 4, float> mBobTimer;
31 ::ll::TypedStorage<4, 4, float> mFishAngle;
32 ::ll::TypedStorage<4, 4, int> mLife;
33 ::ll::TypedStorage<4, 4, int> mFlightTime;
34 ::ll::TypedStorage<4, 4, int> mTimeUntilHooked;
35 ::ll::TypedStorage<4, 4, int> mTimeUntilLured;
36 ::ll::TypedStorage<4, 4, int> mTimeUntilNibble;
37 ::ll::TypedStorage<4, 4, int> mFishingSpeed;
38 ::ll::TypedStorage<1, 1, bool> mInGround;
39 // NOLINTEND
40
41public:
42 // prevent constructor by default
43 FishingHook();
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual ~FishingHook() /*override*/ = default;
49
50 virtual void remove() /*override*/;
51
52 virtual void handleEntityEvent(::ActorEvent eventId, int data) /*override*/;
53
54 virtual float getShadowRadius() const /*override*/;
55
56 virtual ::ActorUniqueID getSourceUniqueID() const /*override*/;
57
58 virtual bool shouldDropDeathLoot() const /*override*/;
59
60 virtual void reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
66 MCAPI FishingHook(
67 ::ActorDefinitionGroup* definitions,
68 ::ActorDefinitionIdentifier const& definitionName,
69 ::EntityContext& entityContext
70 );
71
72 MCAPI void _fishPosEvent();
73
74 MCAPI void _fishTeaseEvent();
75
76 MCAPI void _fishhookEvent();
77
78 MCAPI int _getServerFishSpeed();
79
80 MCAPI float _getWaterPercentage();
81
82 MCAPI ::HitResult _hitCheck();
83
84 MCAPI void _pullCloser(::Actor& inEntity, float inSpeed);
85
86 MCAPI bool _serverHooked();
87
88 MCAPI bool _serverLured();
89
90 MCAPI void _updateGravity();
91
92 MCAPI void _updateServer();
93
94 MCAPI void postNormalTick();
95
96 MCAPI int retrieve();
97
98 MCAPI void shoot(::Vec3 dir, float pow, float uncertainty);
99 // NOLINTEND
100
101public:
102 // static variables
103 // NOLINTBEGIN
104 MCAPI static float const& BOBBER_SIZE();
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
132
133 // NOLINTEND
134
135public:
136 // vftables
137 // NOLINTBEGIN
138 MCAPI static void** $vftable();
139 // NOLINTEND
140};
Definition ActorDefinitionGroup.h:37
Definition EntityContext.h:17
Definition HitResult.h:19
Definition Vec3.h:10
Definition ActorDefinitionIdentifier.h:15
Definition ActorUniqueID.h:10
Definition VariantParameterList.h:14