LeviLamina
Loading...
Searching...
No Matches
LootItemCondition Class Referenceabstract
Inheritance diagram for LootItemCondition:

Public Types

enum class  ConditionType : int {
  KilledByPlayer = 0 , KilledByPlayerOrPets = 1 , KilledByActor = 2 , ActorKilled = 3 ,
  RandomChance = 4 , RandomDifficultyChance = 5 , RandomChanceWithLooting = 6 , RandomRegionalDifficultyChance = 7 ,
  HasMarkVariant = 8 , HasVariant = 9 , MatchTool = 10 , DamagedByActor = 11 ,
  PassengerOfActor = 12 , IsBaby = 13 , ActorFilter = 14 , HasPropertyCondition = 15 ,
  BoolPropertyValueCondition = 16 , IntPropertyValueCondition = 17 , FloatPropertyValueCondition = 18 , EnumPropertyValueCondition = 19
}

Public Member Functions

virtual bool applies (::Random &, ::LootTableContext &)=0
virtual::LootItemCondition::ConditionType getConditionType () const =0

Static Public Member Functions

static MCAPI ::std::unique_ptr<::LootItemConditiondeserialize (::Json::Value const &object, bool)

Member Function Documentation

◆ deserialize()

MCAPI ::std::unique_ptr<::LootItemCondition > LootItemCondition::deserialize ( ::Json::Value const & object,
bool  )
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: