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 virtual bool _createItem(::std::vector<::ItemStack>& output, ::Random& random, ::LootTableContext& context) const
33 /*override*/;
34
35 virtual ~LootItem() /*override*/ = default;
36
37 virtual ::LootPoolEntry::EntryType getEntryType() const /*override*/;
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 // virtual function thunks
54 // NOLINTBEGIN
55 MCAPI bool $_createItem(::std::vector<::ItemStack>& output, ::Random& random, ::LootTableContext& context) const;
56
57 MCFOLD ::LootPoolEntry::EntryType $getEntryType() const;
58
59
60 // NOLINTEND
61
62public:
63 // vftables
64 // NOLINTBEGIN
65 MCNAPI static void** $vftable();
66 // NOLINTEND
67};
Definition ItemStack.h:26
Definition Item.h:69
Definition Value.h:16
Definition LootItemCondition.h:12
Definition LootItemFunction.h:17
Definition LootItem.h:19
static MCAPI void ** $vftable()
Definition LootPoolEntry.h:14
Definition LootTableContext.h:20
Definition Random.h:10
Definition context.h:5