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
10// auto generated forward declare list
11// clang-format off
13class BlockPos;
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 // virtual functions
43 // NOLINTBEGIN
44 // vIndex: 8
45 virtual ~FishingHook() /*override*/ = default;
46
47 // vIndex: 11
48 virtual void remove() /*override*/;
49
50 // vIndex: 69
51 virtual void handleEntityEvent(::ActorEvent eventId, int data) /*override*/;
52
53 // vIndex: 35
54 virtual float getShadowRadius() const /*override*/;
55
56 // vIndex: 84
57 virtual ::ActorUniqueID getSourceUniqueID() const /*override*/;
58
59 // vIndex: 124
60 virtual bool shouldDropDeathLoot() const /*override*/;
61
62 // vIndex: 2
63 virtual void reloadHardcoded(::ActorInitializationMethod, ::VariantParameterList const&) /*override*/;
64 // NOLINTEND
65
66public:
67 // member functions
68 // NOLINTBEGIN
69 MCAPI FishingHook(
70 ::ActorDefinitionGroup* definitions,
71 ::ActorDefinitionIdentifier const& definitionName,
72 ::EntityContext& entityContext
73 );
74
75 MCAPI void _fishPosEvent();
76
77 MCAPI void _fishTeaseEvent();
78
79 MCAPI void _fishhookEvent();
80
81 MCAPI int _getServerFishSpeed();
82
83 MCAPI float _getWaterPercentage();
84
85 MCAPI ::HitResult _hitCheck();
86
87 MCAPI void _pullCloser(::Actor& inEntity, float inSpeed);
88
89 MCAPI bool _serverHooked();
90
91 MCAPI bool _serverLured();
92
93 MCAPI void _updateGravity();
94
95 MCAPI ::Actor* getFishingTarget();
96
97 MCAPI ::Actor* getOwner();
98
99 MCAPI void postNormalTick();
100
101 MCAPI int retrieve();
102
103 MCAPI void shoot(::Vec3 dir, float pow, float uncertainty);
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 // destructor thunk
118 // NOLINTBEGIN
119
120 // NOLINTEND
121
122public:
123 // virtual function thunks
124 // NOLINTBEGIN
125 MCAPI void $remove();
126
127 MCFOLD float $getShadowRadius() const;
128
129 MCFOLD ::ActorUniqueID $getSourceUniqueID() const;
130
131 MCFOLD bool $shouldDropDeathLoot() const;
132 // NOLINTEND
133
134public:
135 // vftables
136 // NOLINTBEGIN
137 MCAPI static void** $vftable();
138 // NOLINTEND
139};
Definition ActorDefinitionGroup.h:27
Definition Actor.h:104
Definition BlockPos.h:18
Definition EntityContext.h:16
Definition FishingHook.h:22
Definition HitResult.h:19
Definition Vec3.h:10
Definition ActorDefinitionIdentifier.h:13
Definition ActorUniqueID.h:5
Definition VariantParameterList.h:5