Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
BreedableComponent Class Reference

Classes

struct  LoveCauses

Public Types

using MatingResult = ::std::vector<::WeakEntityRef>

Public Member Functions

MCAPI bool _canBreed (::Actor &owner, ::Player &player, ::ItemStack const &playerItem, ::HandSlot handSlot)
MCAPI void addAdditionalSaveData (::CompoundTag &tag) const
MCAPI bool canMate (::Actor const &owner, ::Actor const &partner) const
MCAPI::Interaction getInteraction (::Actor &owner, ::Player &player, ::HandSlot handSlot)
MCAPI ::std::vector<::WeakEntityRef > mate (::Actor &owner, ::Actor &partner)
MCAPI void readAdditionalSaveData (::Actor &, ::CompoundTag const &tag, ::DataLoadHelper &)

Static Public Member Functions

static MCAPI void _spawnExperienceOrbs (::Actor &owner)
static MCAPI void _spawnLoveParticles (::Actor &owner)
static MCAPI bool meetsSittingRequirements (::Actor const &actor)

Public Attributes

::ll::TypedStorage< 8, 8, ::BreedableDefinition const * > mStaticData
::ll::TypedStorage< 4, 4, int > mLoveTimer
::ll::TypedStorage< 4, 4, int > mBreedCooldown
::ll::TypedStorage< 4, 4, int > mBreedCooldownTime
::ll::TypedStorage< 8, 8, ::ActorUniqueID > mLoveCause

Member Function Documentation

◆ _canBreed()

MCAPI bool BreedableComponent::_canBreed ( ::Actor & owner,
::Player & player,
::ItemStack const & playerItem,
::HandSlot handSlot )
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.

◆ addAdditionalSaveData()

MCAPI void BreedableComponent::addAdditionalSaveData ( ::CompoundTag & tag) const
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.

◆ canMate()

MCAPI bool BreedableComponent::canMate ( ::Actor const & owner,
::Actor const & partner ) const
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.

◆ getInteraction()

MCAPI::Interaction BreedableComponent::getInteraction ( ::Actor & owner,
::Player & player,
::HandSlot handSlot )
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.

◆ readAdditionalSaveData()

MCAPI void BreedableComponent::readAdditionalSaveData ( ::Actor & ,
::CompoundTag const & tag,
::DataLoadHelper &  )
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.

◆ meetsSittingRequirements()

MCAPI bool BreedableComponent::meetsSittingRequirements ( ::Actor const & actor)
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.

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