35 ::ll::TypedStorage<4, 4, float> mDuration;
43 ::ll::TypedStorage<8, 16, ::ItemDescriptor> itemDesc;
44 ::ll::TypedStorage<1, 1, bool> useOffhand;
45 ::ll::TypedStorage<1, 1, bool> searchInventory;
46 ::ll::TypedStorage<1, 1, bool> useInCreative;
53 ::ll::TypedStorage<8, 24, ::std::vector<::ShooterItemComponent::ShooterAmmunitionEntry>> mAmmunition;
54 ::ll::TypedStorage<4, 4, ::ShooterItemComponent::DrawDuration> mDrawDuration;
55 ::ll::TypedStorage<1, 1, bool> mScalePowerByDrawDuration;
56 ::ll::TypedStorage<1, 1, bool> mChargeOnDraw;
57 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnUseTimeDepletedSubscription;
58 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnUseSubscription;
63 ShooterItemComponent();
68 virtual ~ShooterItemComponent() =
default;
72 virtual bool checkComponentDataForContentErrors() const ;
78 MCAPI explicit ShooterItemComponent(::SharedTypes::v1_20_50::ShooterItemComponent const& component);
80 MCAPI
void _consumeAmmunition(
88 MCAPI
int _getAmmunition(::
Player const* player,
bool, ::
ItemStack& ammo,
bool& fromOffhand) const;
90 MCAPI
void _shootProjectiles(::
ItemStack& shooterStack, ::
Player* player,
int durationLeft) const;
92 MCAPI
bool releaseUsing(::
ItemStack& item, ::
Player* player,
int durationLeft) const;
98 MCAPI static
void bindType(
99 ::cereal::ReflectionCtx&
ctx,
100 ::
std::vector<::AllExperiments> const& requiredToggles,
108 MCAPI
void* $ctor(::SharedTypes::v1_20_50::ShooterItemComponent const& component);
116 MCAPI
bool $checkComponentDataForContentErrors() const;
Definition ShooterItemComponent.h:39