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;
16namespace Json { class Value; }
17// clang-format on
18
19class LootPool {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::LootPoolEntry>>> mEntries;
24 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::LootItemCondition>>> mConditions;
25 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::LootPoolTiers>> mTiers;
26 ::ll::TypedStorage<4, 8, ::RandomValueBounds> mRolls;
27 ::ll::TypedStorage<4, 8, ::RandomValueBounds> mBonusRolls;
28 // NOLINTEND
29
30public:
31 // member functions
32 // NOLINTBEGIN
33 MCAPI void addRandomItem(::std::vector<::ItemStack>& result, ::Random& random, ::LootTableContext& context);
34
35 MCAPI void addRandomItems(::std::vector<::ItemStack>& result, ::Random& random, ::LootTableContext& context);
36
37 MCAPI void deserialize(::Json::Value const& pool, bool usingUpcomingCreatorFeaturesExperiment);
38
39 MCAPI ~LootPool();
40 // NOLINTEND
41
42public:
43 // destructor thunk
44 // NOLINTBEGIN
45 MCAPI void $dtor();
46 // NOLINTEND
47};
Definition ItemStack.h:26
Definition Value.h:16
Definition LootItemCondition.h:12
Definition LootPoolEntry.h:14
Definition LootPoolTiers.h:5
Definition LootPool.h:19
Definition LootTableContext.h:20
Definition Random.h:10
Definition context.h:5