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