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
18public:
19 // member variables
20 // NOLINTBEGIN
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 LootTableReference& operator=(LootTableReference const&);
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 // vIndex: 0
34 virtual bool _createItem(::std::vector<::ItemStack>& output, ::Random& random, ::LootTableContext& context) const
35 /*override*/;
36
37 // vIndex: 1
38 virtual ~LootTableReference() /*override*/ = default;
39
40 // vIndex: 2
41 virtual ::LootPoolEntry::EntryType getEntryType() const /*override*/;
42 // NOLINTEND
43
44public:
45 // static functions
46 // NOLINTBEGIN
47 MCNAPI static ::std::unique_ptr<::LootPoolEntry> deserialize(
48 ::Json::Value entry,
49 int weight,
50 int quality,
51 ::std::vector<::std::unique_ptr<::LootItemCondition>>& conditions
52 );
53 // NOLINTEND
54
55public:
56 // virtual function thunks
57 // NOLINTBEGIN
58 MCNAPI bool $_createItem(::std::vector<::ItemStack>& output, ::Random& random, ::LootTableContext& context) const;
59
60 MCNAPI ::LootPoolEntry::EntryType $getEntryType() const;
61 // NOLINTEND
62
63public:
64 // vftables
65 // NOLINTBEGIN
66 MCNAPI static void** $vftable();
67 // NOLINTEND
68};
Definition ItemStack.h:23
Definition Value.h:16
Definition LootItemCondition.h:12
Definition LootPoolEntry.h:13
Definition LootTableContext.h:19
Definition LootTableReference.h:17
static MCAPI void ** $vftable()
MCAPI::LootPoolEntry::EntryType $getEntryType() const
static MCAPI ::std::unique_ptr<::LootPoolEntry > deserialize(::Json::Value entry, int weight, int quality, ::std::vector<::std::unique_ptr<::LootItemCondition > > &conditions)
MCAPI bool $_createItem(::std::vector<::ItemStack > &output, ::Random &random, ::LootTableContext &context) const
Definition Random.h:10
Definition context.h:5
Definition Alias.h:14