LeviLamina
Loading...
Searching...
No Matches
LootingEnchantFunction.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/storage/loot/RandomValueBounds.h"
7#include "mc/world/level/storage/loot/functions/LootItemFunction.h"
8
9// auto generated forward declare list
10// clang-format off
11class ItemInstance;
12class ItemStack;
14class Random;
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 8, ::RandomValueBounds> mValue;
22 // NOLINTEND
23
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 virtual ~LootingEnchantFunction() /*override*/ = default;
28
29 virtual void apply(::ItemStack& item, ::Random& random, ::LootTableContext& context) /*override*/;
30
31 virtual void apply(::ItemInstance& itemInstance, ::Random& random, ::LootTableContext& context) /*override*/;
32
33 virtual ::LootItemFunction::FunctionType getFunctionType() const /*override*/;
34 // NOLINTEND
35
36public:
37 // member functions
38 // NOLINTBEGIN
39 MCAPI int _getLootingEnchantLevel(::LootTableContext& context) const;
40
41 MCFOLD ::RandomValueBounds getDamage() const;
42 // NOLINTEND
43
44public:
45 // virtual function thunks
46 // NOLINTBEGIN
47 MCAPI void $apply(::ItemStack& item, ::Random& random, ::LootTableContext& context);
48
49 MCAPI void $apply(::ItemInstance& itemInstance, ::Random& random, ::LootTableContext& context);
50
51 MCFOLD ::LootItemFunction::FunctionType $getFunctionType() const;
52
53
54 // NOLINTEND
55
56public:
57 // vftables
58 // NOLINTBEGIN
59 MCNAPI static void** $vftable();
60 // NOLINTEND
61};
Definition ItemInstance.h:15
Definition ItemStack.h:35
Definition LootItemFunction.h:17
Definition LootTableContext.h:21
Definition LootingEnchantFunction.h:17
static MCAPI void ** $vftable()
Definition Random.h:10
Definition context.h:5