Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
SetBannerDetailsFunction.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/ItemColor.h"
7#include "mc/world/level/block/BannerBlockType.h"
8#include "mc/world/level/storage/loot/functions/LootItemFunction.h"
9
10// auto generated forward declare list
11// clang-format off
12class ItemStackBase;
15class Random;
16namespace Json { class Value; }
17// clang-format on
18
20public:
21 // SetBannerDetailsFunction inner types define
22 using Pattern = ::std::pair<uchar, ::ItemColor>;
23
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<4, 4, ::BannerBlockType> mBannerType;
28 ::ll::TypedStorage<1, 1, ::ItemColor> mBaseColor;
29 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<uchar, ::ItemColor>>> mBannerPatterns;
30 // NOLINTEND
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual ::LootItemFunction::FunctionType getFunctionType() const /*override*/;
36
37 virtual void applyPreVersion(::ItemStackBase& item, ::Random&, ::LootTableContext&) /*override*/;
38 // NOLINTEND
39
40public:
41 // static functions
42 // NOLINTBEGIN
43 MCNAPI static void
44 _parseBannerPattern(::std::vector<::std::pair<uchar, ::ItemColor>>& patternVec, ::Json::Value const& object);
45
46#ifdef LL_PLAT_C
47 MCNAPI static ::std::unique_ptr<::LootItemFunction>
48 deserialize(::Json::Value object, ::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates);
49#endif
50 // NOLINTEND
51
52public:
53 // virtual function thunks
54 // NOLINTBEGIN
55 MCNAPI ::LootItemFunction::FunctionType $getFunctionType() const;
56
58
59
60 // NOLINTEND
61};
Definition ItemStackBase.h:45
Definition Value.h:16
Definition LootItemCondition.h:12
Definition LootItemFunction.h:20
static MCAPI ::std::unique_ptr<::LootItemFunction > deserialize(::Json::Value object, bool usingUpcomingCreatorFeaturesExperiment)
Definition LootTableContext.h:20
Definition Random.h:10
Definition SetBannerDetailsFunction.h:19
MCAPI::LootItemFunction::FunctionType $getFunctionType() const
MCAPI void $applyPreVersion(::ItemStackBase &item, ::Random &, ::LootTableContext &)
static MCAPI void _parseBannerPattern(::std::vector<::std::pair< uchar, ::ItemColor > > &patternVec, ::Json::Value const &object)