LeviLamina
Loading...
Searching...
No Matches
LootTableReference.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/storage/loot/entries/LootPoolEntry.h"
7
8// auto generated forward declare list
9// clang-format off
10class ItemStack;
13class Random;
14namespace Json { class Value; }
15// clang-format on
16
17class LootTableReference : public ::LootPoolEntry {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 32, ::std::string> mDir;
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 LootTableReference();
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual bool _createItem(::std::vector<::ItemStack>& output, ::Random& random, ::LootTableContext& context) const
32 /*override*/;
33
34 virtual ~LootTableReference() /*override*/;
35
36 virtual ::LootPoolEntry::EntryType getEntryType() const /*override*/;
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI LootTableReference(
43 int weight,
44 int quality,
45 ::std::vector<::std::unique_ptr<::LootItemCondition>>& conditions,
46 ::std::string dir
47 );
48
49 MCFOLD ::std::string const& getDir() const;
50 // NOLINTEND
51
52public:
53 // static functions
54 // NOLINTBEGIN
55 MCAPI static ::std::unique_ptr<::LootPoolEntry> deserialize(
56 ::Json::Value entry,
57 int weight,
58 int quality,
59 ::std::vector<::std::unique_ptr<::LootItemCondition>>& conditions
60 );
61 // NOLINTEND
62
63public:
64 // constructor thunks
65 // NOLINTBEGIN
66 MCAPI void* $ctor(
67 int weight,
68 int quality,
69 ::std::vector<::std::unique_ptr<::LootItemCondition>>& conditions,
70 ::std::string dir
71 );
72 // NOLINTEND
73
74public:
75 // destructor thunk
76 // NOLINTBEGIN
77 MCAPI void $dtor();
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCAPI bool $_createItem(::std::vector<::ItemStack>& output, ::Random& random, ::LootTableContext& context) const;
84
85 MCFOLD ::LootPoolEntry::EntryType $getEntryType() const;
86
87
88 // NOLINTEND
89
90public:
91 // vftables
92 // NOLINTBEGIN
93 MCNAPI static void** $vftable();
94 // NOLINTEND
95};
Definition ItemStack.h:35
Definition Value.h:16
Definition LootItemCondition.h:12
Definition LootPoolEntry.h:14
Definition LootTableContext.h:21
static MCAPI void ** $vftable()
Definition Random.h:10
Definition context.h:5