36 ::ll::TypedStorage<4, 4, float> mDuration;
40 struct ShooterAmmunitionEntry {
44 ::ll::TypedStorage<8, 16, ::ItemDescriptor> itemDesc;
45 ::ll::TypedStorage<1, 1, bool> useOffhand;
46 ::ll::TypedStorage<1, 1, bool> searchInventory;
47 ::ll::TypedStorage<1, 1, bool> useInCreative;
52 ShooterAmmunitionEntry();
59 MCFOLD ::ShooterItemComponent::ShooterAmmunitionEntry&
62 MCAPI ~ShooterAmmunitionEntry();
81 ::ll::TypedStorage<8, 24, ::std::vector<::ShooterItemComponent::ShooterAmmunitionEntry>> mAmmunition;
82 ::ll::TypedStorage<4, 4, ::ShooterItemComponent::DrawDuration> mDrawDuration;
83 ::ll::TypedStorage<1, 1, bool> mScalePowerByDrawDuration;
84 ::ll::TypedStorage<1, 1, bool> mChargeOnDraw;
85 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnUseTimeDepletedSubscription;
86 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnUseSubscription;
91 ShooterItemComponent();
96 virtual ~ShooterItemComponent() =
default;
100 virtual bool checkComponentDataForContentErrors() const ;
106 MCAPI explicit ShooterItemComponent(::SharedTypes::v1_20_50::ShooterItemComponent const& component);
108 MCAPI
void _consumeAmmunition(
116 MCAPI
int _getAmmunition(::
Player const* player,
bool, ::
ItemStack& ammo,
bool& fromOffhand) const;
118 MCAPI
void _shootProjectiles(::
ItemStack& shooterStack, ::
Player* player,
int durationLeft) const;
120 MCAPI
bool releaseUsing(::
ItemStack& item, ::
Player* player,
int durationLeft) const;
122 MCAPI
void use(
bool& result, ::
ItemStack& instance, ::
Player& player) const;
128 MCAPI static
void bindType(
129 ::cereal::ReflectionCtx&
ctx,
130 ::
std::vector<::AllExperiments> const& requiredToggles,
140 MCAPI
void* $ctor(::SharedTypes::v1_20_50::ShooterItemComponent const& component);
148 MCAPI
bool $checkComponentDataForContentErrors() const;
Definition ShooterItemComponent.h:40