LeviLamina
Loading...
Searching...
No Matches
BreedableComponent Class Reference

Classes

struct  MatingResult

Public Member Functions

MCAPI bool _canBreed (::Actor &owner, ::Player &player, ::ItemStack const &playerItem)
MCAPI ::std::optional<::BreedableType_determineBreedType (::Actor const &partner) const
MCAPI::Actor * _handleMate (::Actor &owner, ::Actor &partner)
MCAPI void _handlePregnancy (::Actor &owner, ::Actor &partner)
MCAPI bool _meetsEnvironmentRequirements (::Actor &owner) const
MCAPI void _spawnExperienceOrbs (::Actor &owner)
MCAPI void _spawnLoveParticles (::Actor &owner)
MCAPI void _useBreedItem (::Actor &owner, ::Player &player, ::ItemStack const &, ::std::optional<::ItemDescriptor > const &resultItem)
MCAPI bool getInteraction (::Actor &owner, ::Player &player, ::ActorInteraction &interaction)
MCAPI::Player * getLoveCause (::Actor const &owner) const
MCAPI::BreedableComponent::MatingResult mate (::Actor &owner, ::Actor &partner)
MCAPI bool meetsSittingRequirements (::Actor const &actor) const

Static Public Member Functions

static MCAPI void setOffspringAttributes (::MutableAttributeWithContext &offspring, ::AttributeInstanceConstRef owner, ::AttributeInstanceConstRef partner)
static MCAPI void setOffspringAttributesWithParentCentricBlending (::MutableAttributeWithContext &offspring, ::AttributeInstanceConstRef owner, ::AttributeInstanceConstRef partner, ::IRandom &random, float attributeRangeMin, float attributeRangeMax)

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< 1, 1, bool > mCausesPregnancy
::ll::TypedStorage< 8, 8, ::ActorUniqueIDmLoveCause

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