LeviLamina
Loading...
Searching...
No Matches
LootItem.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 Item;
11class ItemStack;
15class Random;
16namespace Json { class Value; }
17// clang-format on
18
19class LootItem : public ::LootPoolEntry {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 8, ::Item const*> mItem;
24 ::ll::TypedStorage<4, 4, int> mAuxValue;
25 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::LootItemFunction>>> mFunctions;
26 ::ll::TypedStorage<8, 32, ::std::string> mOriginalItemName;
27 // NOLINTEND
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 // vIndex: 0
33 virtual bool _createItem(::std::vector<::ItemStack>& output, ::Random& random, ::LootTableContext& context) const
34 /*override*/;
35
36 // vIndex: 1
37 virtual ~LootItem() /*override*/ = default;
38 // NOLINTEND
39
40public:
41 // static functions
42 // NOLINTBEGIN
43 MCAPI static ::std::unique_ptr<::LootPoolEntry> deserialize(
44 ::Json::Value const& entry,
45 int weight,
46 int quality,
47 ::std::vector<::std::unique_ptr<::LootItemCondition>>& conditions,
48 bool usingUpcomingCreatorFeaturesExperiment
49 );
50 // NOLINTEND
51
52public:
53 // destructor thunk
54 // NOLINTBEGIN
55
56 // NOLINTEND
57
58public:
59 // virtual function thunks
60 // NOLINTBEGIN
61 MCAPI bool $_createItem(::std::vector<::ItemStack>& output, ::Random& random, ::LootTableContext& context) const;
62 // NOLINTEND
63
64public:
65 // vftables
66 // NOLINTBEGIN
67 MCAPI static void** $vftable();
68 // NOLINTEND
69};
Definition ItemStack.h:25
Definition Item.h:65
Definition Value.h:16
Definition LootItemCondition.h:12
Definition LootItemFunction.h:17
Definition LootItem.h:19
Definition LootPoolEntry.h:13
Definition LootTableContext.h:20
Definition Random.h:16
Definition context.h:5