LeviLamina
Loading...
Searching...
No Matches
ShooterItemComponent Class Reference
+ Inheritance diagram for ShooterItemComponent:

Classes

class  DrawDuration
 
struct  ShooterAmmunitionEntry
 

Public Member Functions

virtual void _initializeComponent ()
 
virtual bool checkComponentDataForContentErrors () const
 
MCAPI ShooterItemComponent (::SharedTypes::v1_20_50::ShooterItemComponent const &component)
 
MCAPI void _consumeAmmunition (::Player *player, ::ItemStack const &ammunition, int slotIndex, bool infiniteAmmo, bool fromOffhand) const
 
MCAPI int _getAmmunition (::Player const *player, bool, ::ItemStack &ammo, bool &fromOffhand) const
 
MCAPI void _shootProjectiles (::ItemStack &shooterStack, ::Player *player, int durationLeft) const
 
MCAPI bool releaseUsing (::ItemStack &item, ::Player *player, int durationLeft) const
 
MCAPI void use (bool &result, ::ItemStack &instance, ::Player &player) const
 
MCAPI void * $ctor (::SharedTypes::v1_20_50::ShooterItemComponent const &component)
 
MCAPI void $_initializeComponent ()
 
MCAPI bool $checkComponentDataForContentErrors () const
 
bool isNetworkComponent () const override
 
std::unique_ptr< CompoundTagbuildNetworkTag (const cereal::ReflectionCtx &) const override
 
virtual ::std::unique_ptr<::CompoundTagbuildNetworkTag (::cereal::ReflectionCtx const &ctx) const
 
bool initializeFromNetwork (const CompoundTag &, const cereal::ReflectionCtx &) override
 
virtual bool initializeFromNetwork (::CompoundTag const &tag, ::cereal::ReflectionCtx const &ctx)
 
virtual void writeSettings ()
 
virtual void handleVersionBasedInitialization (::SemVersion const &originalJsonVersion)
 
MCFOLD void $writeSettings ()
 
MCFOLD bool $isNetworkComponent () const
 
MCFOLD ::std::unique_ptr<::CompoundTag$buildNetworkTag (::cereal::ReflectionCtx const &ctx) const
 
MCFOLD bool $initializeFromNetwork (::CompoundTag const &tag, ::cereal::ReflectionCtx const &ctx)
 
MCFOLD void $handleVersionBasedInitialization (::SemVersion const &originalJsonVersion)
 

Static Public Member Functions

static MCAPI void bindType (::cereal::ReflectionCtx &ctx, ::std::vector<::AllExperiments > const &requiredToggles, ::std::optional<::SemVersion > releasedMinFormatVersion)
 
static MCAPI ::HashedString const & getIdentifier ()
 
static MCAPI void ** $vftable ()
 

Public Attributes

::ll::TypedStorage< 8, 24, ::std::vector<::ShooterItemComponent::ShooterAmmunitionEntry > > mAmmunition
 
::ll::TypedStorage< 4, 4, ::ShooterItemComponent::DrawDurationmDrawDuration
 
::ll::TypedStorage< 1, 1, bool > mScalePowerByDrawDuration
 
::ll::TypedStorage< 1, 1, bool > mChargeOnDraw
 
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::SubscriptionmOnUseTimeDepletedSubscription
 
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::SubscriptionmOnUseSubscription
 
::ll::TypedStorage< 8, 8, ::ComponentItem * > mOwner
 

Member Function Documentation

◆ _initializeComponent()

virtual void ShooterItemComponent::_initializeComponent ( )
virtual

Reimplemented from ItemComponent.

◆ checkComponentDataForContentErrors()

virtual bool ShooterItemComponent::checkComponentDataForContentErrors ( ) const
virtual

Reimplemented from ItemComponent.

◆ $vftable()

static MCAPI void ** ShooterItemComponent::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ isNetworkComponent()

bool NetworkedItemComponent< ::ShooterItemComponent >::isNetworkComponent ( ) const
nodiscardoverridevirtualinherited

Reimplemented from ItemComponent.


The documentation for this class was generated from the following file: