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 virtual ::InteractionResult
44 _useOn(::ItemStack& instance, ::Actor& actor, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const
45 /*override*/;
46
47 virtual ::std::string
48 buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const /*override*/;
49
50 virtual ::Rarity getRarity(::ItemStackBase const& stack) const /*override*/;
51
52 virtual void appendFormattedHovertext(
53 ::ItemStackBase const& stack,
54 ::Level& level,
56 bool const showCategory
57 ) const /*override*/;
58
59 virtual bool isValidAuxValue(int auxValue) const /*override*/;
60
61 virtual bool isWearableThroughLootTable(::CompoundTag const* userData) const /*override*/;
62
63 virtual void fixupCommon(::ItemStackBase& item) const /*override*/;
64 // NOLINTEND
65
66public:
67 // member functions
68 // NOLINTBEGIN
69 MCAPI BannerItem(::std::string const& name, int id);
70 // NOLINTEND
71
72public:
73 // static functions
74 // NOLINTBEGIN
75 MCAPI static ::std::vector<::std::pair<::gsl::not_null<::BannerPattern const*>, ::ItemColor>>
76 getPatternAndColorPairsFromItemStack(::ItemStackBase const& item);
77 // NOLINTEND
78
79public:
80 // constructor thunks
81 // NOLINTBEGIN
82 MCAPI void* $ctor(::std::string const& name, int id);
83 // NOLINTEND
84
85public:
86 // virtual function thunks
87 // NOLINTBEGIN
88 MCAPI ::InteractionResult
89 $_useOn(::ItemStack& instance, ::Actor& actor, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const;
90
91 MCAPI ::std::string
92 $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const;
93
94 MCAPI ::Rarity $getRarity(::ItemStackBase const& stack) const;
95
96 MCAPI void $appendFormattedHovertext(
97 ::ItemStackBase const& stack,
98 ::Level& level,
100 bool const showCategory
101 ) const;
102
103 MCFOLD bool $isValidAuxValue(int auxValue) const;
104
105 MCAPI bool $isWearableThroughLootTable(::CompoundTag const* userData) const;
106
107 MCAPI void $fixupCommon(::ItemStackBase& item) const;
108
109
110 // NOLINTEND
111
112public:
113 // vftables
114 // NOLINTBEGIN
115 MCAPI static void** $vftable();
116 // NOLINTEND
117};
Definition Actor.h:125
Definition BannerPattern.h:17
Definition RedactableString.h:10
Definition BlockPos.h:21
Definition Block.h:69
Definition CompoundTag.h:23
Definition InteractionResult.h:5
Definition ItemDescriptor.h:25
Definition ItemStackBase.h:52
Definition ItemStack.h:35
Definition Level.h:255
Definition Vec3.h:10