Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
EnchantBookForTradingFunction.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/storage/loot/functions/LootItemFunction.h"
7
8// auto generated forward declare list
9// clang-format off
11class ItemStackBase;
13class Random;
14struct Trade;
15// clang-format on
16
18public:
19 // EnchantBookForTradingFunction inner types declare
20 // clang-format off
21 struct EnchantmentOption;
22 // clang-format on
23
24 // EnchantBookForTradingFunction inner types define
26 public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<8, 32, ::std::string> mEnchantmentName;
30 ::ll::TypedStorage<4, 4, int> mMinLevel;
31 ::ll::TypedStorage<4, 4, int> mMaxLevel;
32 // NOLINTEND
33 };
34
35public:
36 // member variables
37 // NOLINTBEGIN
38 ::ll::TypedStorage<4, 4, int> mBaseCost;
39 ::ll::TypedStorage<4, 4, int> mRandomBaseCost;
40 ::ll::TypedStorage<4, 4, int> mRandomPerLevelCost;
41 ::ll::TypedStorage<4, 4, int> mPerLevelCost;
42 ::ll::TypedStorage<8, 24, ::std::vector<::EnchantBookForTradingFunction::EnchantmentOption>> mEnchantmentOptions;
43 // NOLINTEND
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual ::LootItemFunction::FunctionType getFunctionType() const /*override*/;
49
50 virtual void applyPreVersion(::ItemStackBase& item, ::Random& random, ::LootTableContext&) /*override*/;
51
52 virtual int
53 applyPreVersion(::ItemStackBase& item, ::Random& random, ::LootTableContext&, ::Trade const&) /*override*/;
54 // NOLINTEND
55
56public:
57 // member functions
58 // NOLINTBEGIN
59 MCNAPI ::std::optional<::EnchantmentInstance> _trySelectEnchantmentFromOptions(::Random& random) const;
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCNAPI ::LootItemFunction::FunctionType $getFunctionType() const;
66
67 MCNAPI void $applyPreVersion(::ItemStackBase& item, ::Random& random, ::LootTableContext&);
68
69 MCNAPI int $applyPreVersion(::ItemStackBase& item, ::Random& random, ::LootTableContext&, ::Trade const&);
70
71
72 // NOLINTEND
73};
Definition EnchantBookForTradingFunction.h:17
MCAPI::LootItemFunction::FunctionType $getFunctionType() const
MCAPI ::std::optional<::EnchantmentInstance > _trySelectEnchantmentFromOptions(::Random &random) const
MCAPI void $applyPreVersion(::ItemStackBase &item, ::Random &random, ::LootTableContext &)
Definition EnchantmentInstance.h:8
Definition ItemStackBase.h:45
Definition LootItemFunction.h:20
Definition LootTableContext.h:20
Definition Random.h:10
STL namespace.
Definition EnchantBookForTradingFunction.h:25
Definition Trade.h:10