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 // virtual functions
36 // NOLINTBEGIN
37 // vIndex: 120
38 virtual ::InteractionResult
39 _useOn(::ItemStack& instance, ::Actor& entity, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const
40 /*override*/;
41
42 // vIndex: 87
43 virtual ::std::string
44 buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const /*override*/;
45
46 // vIndex: 43
47 virtual ::Rarity getRarity(::ItemStackBase const& stack) const /*override*/;
48
49 // vIndex: 52
50 virtual void appendFormattedHovertext(
51 ::ItemStackBase const& stack,
52 ::Level& level,
54 bool const showCategory
55 ) const /*override*/;
56
57 // vIndex: 60
58 virtual bool isValidAuxValue(int auxValue) const /*override*/;
59
60 // vIndex: 45
61 virtual bool isWearableThroughLootTable(::CompoundTag const* userData) const /*override*/;
62
63 // vIndex: 97
64 virtual void fixupCommon(::ItemStackBase& item) const /*override*/;
65
66 // vIndex: 0
67 virtual ~BannerItem() /*override*/ = default;
68 // NOLINTEND
69
70public:
71 // static functions
72 // NOLINTBEGIN
73 MCAPI static ::std::vector<::std::pair<::gsl::not_null<::BannerPattern const*>, ::ItemColor>>
74 getPatternAndColorPairsFromItemStack(::ItemStackBase const& item);
75 // NOLINTEND
76
77public:
78 // destructor thunk
79 // NOLINTBEGIN
80
81 // NOLINTEND
82
83public:
84 // virtual function thunks
85 // NOLINTBEGIN
86 MCAPI ::InteractionResult
87 $_useOn(::ItemStack& instance, ::Actor& entity, ::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 void $appendFormattedHovertext(
93 ::ItemStackBase const& stack,
94 ::Level& level,
96 bool const showCategory
97 ) const;
98
99 MCFOLD bool $isValidAuxValue(int auxValue) const;
100
101 MCAPI bool $isWearableThroughLootTable(::CompoundTag const* userData) const;
102
103 MCAPI void $fixupCommon(::ItemStackBase& item) const;
104 // NOLINTEND
105
106public:
107 // vftables
108 // NOLINTBEGIN
109 MCAPI static void** $vftable();
110 // NOLINTEND
111};
Definition Actor.h:104
Definition BannerItem.h:26
Definition BannerPattern.h:13
Definition RedactableString.h:10
Definition BlockPos.h:18
Definition Block.h:36
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:234
Definition Vec3.h:10