API Reference
On this page
Public Member Functions | |
| EconomyTradeableComponent & | operator= (EconomyTradeableComponent const &) |
| EconomyTradeableComponent (EconomyTradeableComponent const &) | |
| MCAPI | EconomyTradeableComponent (::Actor &owner) |
| MCAPI bool | _generateTrades () |
| MCAPI::TradeTable * | _getTradeTable () |
| MCAPI void | addAdditionalSaveData (::CompoundTag &tag) const |
| MCAPI::UpdateTradePacket | createDataPacket (::ContainerID containerID) |
| MCAPI void | fixVillagerTierToMatchTradeList (::MerchantRecipeList *oldOffers) |
| MCAPI::IntRange | getCurrentCuredDiscount () const |
| MCAPI::Interaction | getInteraction (::Player &player) |
| MCAPI::MerchantRecipeList * | getOffers () |
| MCAPI uint | getTradeExpForCurrentLevel () const |
| MCAPI uint | getTradeTier () const |
| MCAPI bool | hasSupplyRemaining () const |
| MCAPI void | initFromDefinition () |
| MCAPI void | initFromDefinition (::SharedTypes::v1_26_60::EconomyTradeableComponentDefinition const &definition) |
| MCAPI::std::string const & | loadDisplayName () |
| MCAPI void | matchExpAndTier () |
| MCAPI void | newServerAiStep () |
| MCAPI void | notifyTrade (int recipeIndex, int numTrades) |
| MCAPI void | readAdditionalSaveData (::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper) |
| MCAPI void | reloadComponent () |
| MCAPI void | resupplyTrades () |
| MCAPI void | setNearbyCuredDiscount (int discount) |
| MCAPI void | setOffers (::MerchantRecipeList &offers) |
| MCAPI void | tickDiscountDegradationTimer (::Tick currentTick) |
| MCAPI void | tryIncrementCuredDiscount () |
| MCAPI void | tryIncrementNearbyCuredDiscount () |
| MCAPI void | tryToTransferOldOffers (::MerchantRecipeList *oldOffers) |
| MCAPI | ~EconomyTradeableComponent () |
| MCAPI void * | $ctor (::Actor &owner) |
| MCAPI void | $dtor () |
Public Attributes | |
| ::ll::TypedStorage< 8, 8, ::ActorUniqueID > | mLastTradingPlayer |
| ::ll::TypedStorage< 4, 4, int > | mUpdateMerchantTimer |
| ::ll::TypedStorage< 1, 1, bool > | mAddRecipeOnUpdate |
| ::ll::TypedStorage< 4, 4, int > | mRiches |
| ::ll::TypedStorage< 8, 8, ::Actor & > | mOwner |
| ::ll::TypedStorage< 8, 8, ::std::unique_ptr<::MerchantRecipeList > > | mOffers |
| ::ll::TypedStorage< 8, 32, ::std::string > | mDisplayName |
| ::ll::TypedStorage< 8, 32, ::std::string > | mTradeTablePath |
| ::ll::TypedStorage< 1, 1, bool > | mUseNewTradeScreen |
| ::ll::TypedStorage< 4, 4, int > | mHeroDemandDiscount |
| ::ll::TypedStorage< 4, 8, ::IntRange > | mCuredDiscount |
| ::ll::TypedStorage< 4, 8, ::IntRange > | mMaxCuredDiscount |
| ::ll::TypedStorage< 4, 4, int > | mNearbyCuredDiscount |
| ::ll::TypedStorage< 4, 4, int > | mMaxNearbyCuredDiscount |
| ::ll::TypedStorage< 1, 1, bool > | mPersistTrades |
| ::ll::TypedStorage< 1, 1, bool > | mConvertTradesEconomy |
| ::ll::TypedStorage< 1, 1, bool > | mShowTradeScreen |
| ::ll::TypedStorage< 1, 1, bool > | mUseLegacyPrices |
| ::ll::TypedStorage< 8, 32, ::std::string > | mGeneratedTablePath |
| ::ll::TypedStorage< 1, 1, bool > | mConvertedFromVillagerV1 |
| ::ll::TypedStorage< 4, 4, int > | mDiscountDegradationTimeStamp |
|
explicit |
| MCAPI EconomyTradeableComponent::~EconomyTradeableComponent | ( | ) |
| MCAPI::TradeTable * EconomyTradeableComponent::_getTradeTable | ( | ) |
| MCAPI void EconomyTradeableComponent::addAdditionalSaveData | ( | ::CompoundTag & | tag | ) | const |
| MCAPI::UpdateTradePacket EconomyTradeableComponent::createDataPacket | ( | ::ContainerID | containerID | ) |
| MCAPI void EconomyTradeableComponent::fixVillagerTierToMatchTradeList | ( | ::MerchantRecipeList * | oldOffers | ) |
| MCAPI::IntRange EconomyTradeableComponent::getCurrentCuredDiscount | ( | ) | const |
| MCAPI::Interaction EconomyTradeableComponent::getInteraction | ( | ::Player & | player | ) |
| MCAPI uint EconomyTradeableComponent::getTradeExpForCurrentLevel | ( | ) | const |
| MCAPI uint EconomyTradeableComponent::getTradeTier | ( | ) | const |
| MCAPI bool EconomyTradeableComponent::hasSupplyRemaining | ( | ) | const |
| MCAPI void EconomyTradeableComponent::initFromDefinition | ( | ) |
| MCAPI void EconomyTradeableComponent::initFromDefinition | ( | ::SharedTypes::v1_26_60::EconomyTradeableComponentDefinition const & | definition | ) |
| MCAPI::std::string const & EconomyTradeableComponent::loadDisplayName | ( | ) |
| MCAPI void EconomyTradeableComponent::matchExpAndTier | ( | ) |
| MCAPI void EconomyTradeableComponent::newServerAiStep | ( | ) |
| MCAPI void EconomyTradeableComponent::readAdditionalSaveData | ( | ::CompoundTag const & | tag, |
| ::DataLoadHelper & | dataLoadHelper ) |
| MCAPI void EconomyTradeableComponent::reloadComponent | ( | ) |
| MCAPI void EconomyTradeableComponent::setNearbyCuredDiscount | ( | int | discount | ) |
| MCAPI void EconomyTradeableComponent::setOffers | ( | ::MerchantRecipeList & | offers | ) |
| MCAPI void EconomyTradeableComponent::tickDiscountDegradationTimer | ( | ::Tick | currentTick | ) |
| MCAPI void EconomyTradeableComponent::tryIncrementCuredDiscount | ( | ) |
| MCAPI void EconomyTradeableComponent::tryIncrementNearbyCuredDiscount | ( | ) |
| MCAPI void EconomyTradeableComponent::tryToTransferOldOffers | ( | ::MerchantRecipeList * | oldOffers | ) |
| MCAPI void * EconomyTradeableComponent::$ctor | ( | ::Actor & | owner | ) |
| MCAPI void EconomyTradeableComponent::$dtor | ( | ) |