LeviLamina
Loading...
Searching...
No Matches
BannerItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/Item.h"
7#include "mc/world/item/ItemColor.h"
8#include "mc/world/item/Rarity.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class BannerPattern;
14class Block;
15class BlockPos;
16class CompoundTag;
18class ItemDescriptor;
19class ItemStack;
20class ItemStackBase;
21class Level;
22class Vec3;
23namespace Bedrock::Safety { class RedactableString; }
24// clang-format on
25
26class BannerItem : public ::Item {
27public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<8, 8, ::Block const&> mWallBanner;
31 ::ll::TypedStorage<8, 8, ::Block const&> mStandingBanner;
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 BannerItem& operator=(BannerItem const&);
37 BannerItem(BannerItem const&);
38 BannerItem();
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 // vIndex: 120
44 virtual ::InteractionResult
45 _useOn(::ItemStack& instance, ::Actor& actor, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const
46 /*override*/;
47
48 // vIndex: 87
49 virtual ::std::string
50 buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const /*override*/;
51
52 // vIndex: 43
53 virtual ::Rarity getRarity(::ItemStackBase const& stack) const /*override*/;
54
55 // vIndex: 52
56 virtual void appendFormattedHovertext(
57 ::ItemStackBase const& stack,
58 ::Level& level,
60 bool const showCategory
61 ) const /*override*/;
62
63 // vIndex: 60
64 virtual bool isValidAuxValue(int auxValue) const /*override*/;
65
66 // vIndex: 45
67 virtual bool isWearableThroughLootTable(::CompoundTag const* userData) const /*override*/;
68
69 // vIndex: 97
70 virtual void fixupCommon(::ItemStackBase& item) const /*override*/;
71
72 // vIndex: 0
73 virtual ~BannerItem() /*override*/ = default;
74 // NOLINTEND
75
76public:
77 // static functions
78 // NOLINTBEGIN
79 MCAPI static ::std::vector<::std::pair<::gsl::not_null<::BannerPattern const*>, ::ItemColor>>
80 getPatternAndColorPairsFromItemStack(::ItemStackBase const& item);
81 // NOLINTEND
82
83public:
84 // virtual function thunks
85 // NOLINTBEGIN
86 MCAPI ::InteractionResult
87 $_useOn(::ItemStack& instance, ::Actor& actor, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const;
88
89 MCAPI ::std::string
90 $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const;
91
92 MCAPI ::Rarity $getRarity(::ItemStackBase const& stack) const;
93
94 MCAPI void $appendFormattedHovertext(
95 ::ItemStackBase const& stack,
96 ::Level& level,
98 bool const showCategory
99 ) const;
100
101 MCFOLD bool $isValidAuxValue(int auxValue) const;
102
103 MCAPI bool $isWearableThroughLootTable(::CompoundTag const* userData) const;
104
105 MCAPI void $fixupCommon(::ItemStackBase& item) const;
106 // NOLINTEND
107
108public:
109 // vftables
110 // NOLINTBEGIN
111 MCNAPI static void** $vftable();
112 // NOLINTEND
113};
Definition Actor.h:103
Definition BannerItem.h:26
static MCAPI void ** $vftable()
Definition BannerPattern.h:13
Definition RedactableString.h:10
Definition BlockPos.h:18
Definition Block.h:38
Definition CompoundTag.h:13
Definition InteractionResult.h:5
Definition ItemDescriptor.h:22
Definition ItemStackBase.h:35
Definition ItemStack.h:25
Definition Item.h:65
Definition Level.h:238
Definition Vec3.h:10