22class FishingHook :
public ::Actor {
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;
48 virtual ~FishingHook() =
default;
50 virtual void remove() ;
52 virtual void handleEntityEvent(::ActorEvent eventId,
int data) ;
54 virtual float getShadowRadius()
const ;
56 virtual ::ActorUniqueID getSourceUniqueID()
const ;
58 virtual bool shouldDropDeathLoot()
const ;
72 MCAPI
void _fishPosEvent();
74 MCAPI
void _fishTeaseEvent();
76 MCAPI
void _fishhookEvent();
78 MCAPI
int _getServerFishSpeed();
80 MCAPI
float _getWaterPercentage();
82 MCAPI ::HitResult _hitCheck();
84 MCAPI
void _pullCloser(::Actor& inEntity,
float inSpeed);
86 MCAPI
bool _serverHooked();
88 MCAPI
bool _serverLured();
90 MCAPI
void _updateGravity();
92 MCAPI
void _updateServer();
94 MCAPI
void postNormalTick();
98 MCAPI
void shoot(
::Vec3 dir,
float pow,
float uncertainty);
104 MCAPI
static float const& BOBBER_SIZE();
120 MCAPI
void $remove();
122 MCAPI
void $handleEntityEvent(::ActorEvent eventId,
int data);
124 MCFOLD
float $getShadowRadius()
const;
126 MCFOLD ::ActorUniqueID $getSourceUniqueID()
const;
128 MCFOLD
bool $shouldDropDeathLoot()
const;
138 MCAPI
static void** $vftable();
Definition EntityContext.h:17