LeviLamina
Loading...
Searching...
No Matches
LootPoolEntry.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class ItemStack;
10class Random;
11namespace Json { class Value; }
12// clang-format on
13
15public:
16 // LootPoolEntry inner types define
17 enum class EntryType : int {
18 LootItem = 0,
19 EmptyLootItem = 1,
22 };
23
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<4, 4, int> mWeight;
28 ::ll::TypedStorage<4, 4, int> mQuality;
29 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::LootItemCondition>>> mConditions;
30 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::LootPoolEntry>> mSubTable;
31 // NOLINTEND
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual bool _createItem(::std::vector<::ItemStack>&, ::Random&, ::LootTableContext&) const = 0;
37
38 virtual ~LootPoolEntry();
39
40 virtual ::LootPoolEntry::EntryType getEntryType() const = 0;
41 // NOLINTEND
42
43public:
44 // static functions
45 // NOLINTBEGIN
46 MCAPI static ::std::unique_ptr<::LootPoolEntry>
47 deserialize(::Json::Value const& entryJson, bool usingUpcomingCreatorFeaturesExperiment);
48 // NOLINTEND
49
50public:
51 // destructor thunk
52 // NOLINTBEGIN
53 MCAPI void $dtor();
54 // NOLINTEND
55
56public:
57 // virtual function thunks
58 // NOLINTBEGIN
59
60 // NOLINTEND
61
62public:
63 // vftables
64 // NOLINTBEGIN
65 MCNAPI static void** $vftable();
66 // NOLINTEND
67};
Definition EmptyLootItem.h:15
Definition ItemStack.h:26
Definition Value.h:16
Definition LootItemCondition.h:12
Definition LootItem.h:19
Definition LootPoolEntry.h:14
static MCAPI void ** $vftable()
Definition LootTableContext.h:20
Definition LootTableEntry.h:17
Definition LootTableReference.h:17
Definition Random.h:10