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
37 _createItem(::std::vector<::ItemStack>& output, ::Random& random, ::LootTableContext& context) const = 0;
38
39 virtual ~LootPoolEntry();
40
41 virtual ::LootPoolEntry::EntryType getEntryType() const = 0;
42 // NOLINTEND
43
44public:
45 // static functions
46 // NOLINTBEGIN
47 MCAPI static ::std::unique_ptr<::LootPoolEntry>
48 deserialize(::Json::Value const& entryJson, bool usingUpcomingCreatorFeaturesExperiment);
49 // NOLINTEND
50
51public:
52 // destructor thunk
53 // NOLINTBEGIN
54 MCAPI void $dtor();
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60
61 // NOLINTEND
62
63public:
64 // vftables
65 // NOLINTBEGIN
66 MCNAPI static void** $vftable();
67 // NOLINTEND
68};
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
Definition context.h:5