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
39 // vIndex: 2
40 virtual ::LootPoolEntry::EntryType getEntryType() const /*override*/;
41 // NOLINTEND
42
43public:
44 // static functions
45 // NOLINTBEGIN
46 MCNAPI static ::std::unique_ptr<::LootPoolEntry> deserialize(
47 ::Json::Value const& entry,
48 int weight,
49 int quality,
50 ::std::vector<::std::unique_ptr<::LootItemCondition>>& conditions,
51 bool usingUpcomingCreatorFeaturesExperiment
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 Item.h:66
Definition Value.h:16
Definition LootItemCondition.h:12
Definition LootItemFunction.h:17
Definition LootItem.h:19
MCAPI bool $_createItem(::std::vector<::ItemStack > &output, ::Random &random, ::LootTableContext &context) const
static MCAPI void ** $vftable()
static MCAPI ::std::unique_ptr<::LootPoolEntry > deserialize(::Json::Value const &entry, int weight, int quality, ::std::vector<::std::unique_ptr<::LootItemCondition > > &conditions, bool usingUpcomingCreatorFeaturesExperiment)
MCAPI::LootPoolEntry::EntryType $getEntryType() const
Definition LootPoolEntry.h:13
Definition LootTableContext.h:19
Definition Random.h:10
Definition context.h:5