30class ProjectileComponent {
33 enum class EAxis :
int {
40 using ProjectileAnchor = ::SharedTypes::v1_26_50::ProjectileComponentDefinition::ProjectileAnchor;
42 using ShouldBounce = ::SharedTypes::v1_26_50::ProjectileComponentDefinition::ShouldBounce;
47 ::ll::TypedStorage<1, 1, bool> mWasOnGround;
48 ::ll::TypedStorage<1, 1, bool> mNoPhysics;
49 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mOwnerId;
50 ::ll::TypedStorage<4, 12, ::Vec3> mThrownPos;
51 ::ll::TypedStorage<4, 12, ::Vec3> mApexPos;
52 ::ll::TypedStorage<1, 1, bool> mFoundApex;
53 ::ll::TypedStorage<4, 4, int> mDespawnTimer;
54 ::ll::TypedStorage<4, 4, int> mLifetime;
55 ::ll::TypedStorage<4, 4, int> mFlightTime;
56 ::ll::TypedStorage<4, 4, int> mOnGroundTime;
57 ::ll::TypedStorage<4, 4, int> mShakeTime;
58 ::ll::TypedStorage<4, 12, ::BlockPos> mBlock;
59 ::ll::TypedStorage<4, 12, ::BlockPos> mStuckToBlockPos;
60 ::ll::TypedStorage<4, 12, ::Vec3> mCollisionPos;
61 ::ll::TypedStorage<4, 4, int> mEnchantPower;
62 ::ll::TypedStorage<4, 4, int> mEnchantImpaler;
63 ::ll::TypedStorage<8, 136, ::HitResult> mHitResult;
64 ::ll::TypedStorage<1, 1, uchar> mHitFacing;
65 ::ll::TypedStorage<1, 1, bool> mReflect;
66 ::ll::TypedStorage<4, 4, int> mReflectImmunityTicks;
67 ::ll::TypedStorage<4, 4, float> mPower;
68 ::ll::TypedStorage<4, 4, float> mDamage;
69 ::ll::TypedStorage<4, 12, ::Vec3> mOffset;
70 ::ll::TypedStorage<4, 4, ::ParticleType> mHitParticle;
71 ::ll::TypedStorage<4, 4, float> mGravity;
72 ::ll::TypedStorage<4, 4, float> mUpwardsAngleOffset;
73 ::ll::TypedStorage<8, 24, ::std::vector<::OnHitSubcomponent*>> mOnHitCommands;
74 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnHitEvent;
75 ::ll::TypedStorage<4, 4, float> mUncertaintyBase;
76 ::ll::TypedStorage<4, 4, float> mUncertaintyMultiplier;
77 ::ll::TypedStorage<4, 4, float> mOnFireTime;
78 ::ll::TypedStorage<4, 4, int> mPotionEffect;
79 ::ll::TypedStorage<4, 4, float> mSplashRange;
80 ::ll::TypedStorage<4, 4, float> mKnockbackForce;
81 ::ll::TypedStorage<1, 1, bool> mCatchFire;
82 ::ll::TypedStorage<1, 1, bool> mChanneling;
83 ::ll::TypedStorage<4, 4, float> mInertiaMod;
84 ::ll::TypedStorage<4, 4, float> mLiquidInertia;
85 ::ll::TypedStorage<1, 1, ::SharedTypes::v1_26_50::ProjectileComponentDefinition::ProjectileAnchor> mSpawnPosAnchor;
86 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::LevelSoundEvent> mHitEntitySound;
87 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::LevelSoundEvent> mHitGroundSound;
88 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::LevelSoundEvent> mShootSound;
89 ::ll::TypedStorage<1, 1, bool> mIsDangerous;
90 ::ll::TypedStorage<1, 1, bool> mShootTarget;
91 ::ll::TypedStorage<1, 1, bool> mDamageOwner;
92 ::ll::TypedStorage<1, 1, bool> mReflectOnHurt;
93 ::ll::TypedStorage<1, 1, bool> mDestroyOnHurt;
94 ::ll::TypedStorage<1, 1, bool> mStopOnHurt;
95 ::ll::TypedStorage<1, 1, bool> mCritParticleOnHurt;
96 ::ll::TypedStorage<1, 1, bool> mHitWater;
97 ::ll::TypedStorage<1, 1, bool> mHitActor;
98 ::ll::TypedStorage<1, 1, bool> mMultipleHits;
99 ::ll::TypedStorage<4, 4, int> mPiercingEnchantLevel;
100 ::ll::TypedStorage<4, 4, int> mActorHitCount;
101 ::ll::TypedStorage<8, 24, ::std::vector<::ActorType>> mIgnoredEntities;
102 ::ll::TypedStorage<1, 1, bool> mHitNearestPassenger;
103 ::ll::TypedStorage<1, 1, bool> mIsHoming;
104 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingTargetID;
105 ::ll::TypedStorage<8, 40, ::TempEPtr<::Actor>> mTarget;
106 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mTargetID;
107 ::ll::TypedStorage<4, 12, ::Vec3> mTargetDelta;
108 ::ll::TypedStorage<4, 4, int> mFlightSteps;
109 ::ll::TypedStorage<4, 4, ::ProjectileComponent::EAxis> mCurrentMoveDirection;
110 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mLastReflectActor;
111 ::ll::TypedStorage<1, 5, ::ProjectileHitState> mHitState;
112 ::ll::TypedStorage<1, 1, ::SharedTypes::v1_26_50::ProjectileComponentDefinition::ShouldBounce> mShouldBounce;
113 ::ll::TypedStorage<1, 1, bool> mHasLeftOwner;
114 ::ll::TypedStorage<4, 4, uint> mCurrentDelay;
115 ::ll::TypedStorage<1, 1, bool> mWaitingForServer;
116 ::ll::TypedStorage<1, 1, bool> mWaitingForServerHitGround;
117 ::ll::TypedStorage<8, 136, ::HitResult> mCachedHitResult;
118 ::ll::TypedStorage<1, 1, bool> mDelayOneFrame;
119 ::ll::TypedStorage<1, 1, bool> mShouldRestoreUsesMobTravelComponent;
120 ::ll::TypedStorage<1, 1, bool> mIsolatedPhysics;
125 ProjectileComponent& operator=(ProjectileComponent
const&);
130 MCAPI ProjectileComponent();
132 MCAPI ProjectileComponent(::ProjectileComponent&&);
134 MCAPI ProjectileComponent(::ProjectileComponent
const&);
136 MCAPI
void _selectNextMoveDirection(
::Actor const& owner, ::ProjectileComponent::EAxis avoidAxis);
142 MCAPI ::std::vector<::ActorType>
const getIgnoredEntities()
const;
144 MCAPI ::Vec3 getShooterAngle(
::Actor& shooter)
const;
146 MCAPI
void handleMovementAndGravity(
::Actor& owner,
bool skipPositionUpdate);
148 MCAPI
void handleMovementHoming(
::Actor& owner);
152 MCAPI
void initFromDefinition(
::Actor& owner);
160 MCAPI ::ProjectileComponent& operator=(::ProjectileComponent&&);
164 MCAPI
void setActiveTarget(
::Actor const& owner,
::Actor* target);
173 MCAPI ~ProjectileComponent();
179 MCAPI
static bool _isLoyaltyTrident(
::Actor const& owner);
181 MCAPI static ::Vec2 dampenShooterAngle(
::Vec2 const& angle,
float angleOffset,
::BaseGameVersion const& version);
189 MCAPI
void* $ctor(::ProjectileComponent&&);
191 MCAPI
void* $ctor(::ProjectileComponent
const&);