LeviLamina
Loading...
Searching...
No Matches
LootPool.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/storage/loot/RandomValueBounds.h"
7
8// auto generated forward declare list
9// clang-format off
10class ItemStack;
12class LootPoolEntry;
13class LootPoolTiers;
15class Random;
16class SemVersion;
17namespace Json { class Value; }
18// clang-format on
19
20class LootPool {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::LootPoolEntry>>> mEntries;
25 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::LootItemCondition>>> mConditions;
26 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::LootPoolTiers>> mTiers;
27 ::ll::TypedStorage<4, 8, ::RandomValueBounds> mRolls;
28 ::ll::TypedStorage<4, 8, ::RandomValueBounds> mBonusRolls;
29 // NOLINTEND
30
31public:
32 // member functions
33 // NOLINTBEGIN
34 MCAPI void addRandomItems(::std::vector<::ItemStack>& result, ::Random& random, ::LootTableContext& context);
35
36#ifdef LL_PLAT_C
37 MCAPI void deserialize(
38 ::Json::Value const& pool,
39 bool usingUpcomingCreatorFeaturesExperiment,
40 ::SemVersion const& jsonVersion
41 );
42#endif
43
44 MCAPI ~LootPool();
45 // NOLINTEND
46
47public:
48 // destructor thunk
49 // NOLINTBEGIN
50 MCAPI void $dtor();
51 // NOLINTEND
52};
Definition ItemStack.h:26
Definition Value.h:16
Definition LootItemCondition.h:12
Definition LootPoolEntry.h:18
Definition LootPoolTiers.h:5
Definition LootPool.h:20
Definition LootTableContext.h:20
Definition Random.h:10
Definition SemVersion.h:15
Definition context.h:5