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 // member functions
46 // NOLINTBEGIN
47 MCFOLD int getBaseWeight() const;
48
49 MCFOLD int getQuality() const;
50
51 MCFOLD ::LootPoolEntry const* getSubTable() const;
52 // NOLINTEND
53
54public:
55 // static functions
56 // NOLINTBEGIN
57 MCAPI static ::std::unique_ptr<::LootPoolEntry>
58 deserialize(::Json::Value const& entryJson, bool usingUpcomingCreatorFeaturesExperiment);
59 // NOLINTEND
60
61public:
62 // destructor thunk
63 // NOLINTBEGIN
64 MCAPI void $dtor();
65 // NOLINTEND
66
67public:
68 // virtual function thunks
69 // NOLINTBEGIN
70
71 // NOLINTEND
72
73public:
74 // vftables
75 // NOLINTBEGIN
76 MCNAPI static void** $vftable();
77 // NOLINTEND
78};
Definition EmptyLootItem.h:15
Definition ItemStack.h:35
Definition Value.h:16
Definition LootItemCondition.h:12
Definition LootItem.h:19
Definition LootPoolEntry.h:14
static MCAPI void ** $vftable()
Definition LootTableContext.h:21
Definition LootTableEntry.h:17
Definition LootTableReference.h:17
Definition Random.h:10
Definition context.h:5