Skip to content
LeviMC
English
AutoLightDark
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/HandSlot.h"
7#include "mc/world/item/Item.h"
8#include "mc/world/item/ItemColor.h"
9#include "mc/world/item/Rarity.h"
10
11// auto generated forward declare list
12// clang-format off
13class Actor;
14class BannerPattern;
15class Block;
16class BlockPos;
17class CompoundTag;
19class ItemDescriptor;
20class ItemStack;
21class ItemStackBase;
22class Level;
23class Vec3;
24namespace Bedrock::Safety { class RedactableString; }
25// clang-format on
26
27class BannerItem : public ::Item {
28public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<8, 8, ::Block const&> mWallBanner;
32 ::ll::TypedStorage<8, 8, ::Block const&> mStandingBanner;
33 // NOLINTEND
34
35public:
36 // prevent constructor by default
37 BannerItem& operator=(BannerItem const&);
38 BannerItem(BannerItem const&);
39 BannerItem();
40
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 virtual ::InteractionResult _useOn(
45 ::ItemStack& instance,
46 ::Actor& actor,
47 ::BlockPos pos,
48 uchar face,
49 ::HandSlot handSlot,
50 ::Vec3 const& clickPos
51 ) const /*override*/;
52
53 virtual ::std::string
54 buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const /*override*/;
55
56 virtual ::Rarity getRarity(::ItemStackBase const& stack) const /*override*/;
57
58 virtual void appendFormattedHovertext(
59 ::ItemStackBase const& stack,
60 ::Level& level,
62 bool const showCategory
63 ) const /*override*/;
64
65 virtual bool isValidAuxValue(int auxValue) const /*override*/;
66
67 virtual bool isWearableThroughLootTable(::CompoundTag const* userData) const /*override*/;
68
69 virtual void fixupCommon(::ItemStackBase& item) const /*override*/;
70 // NOLINTEND
71
72public:
73 // member functions
74 // NOLINTBEGIN
75 MCNAPI BannerItem(::std::string const& name, int id);
76 // NOLINTEND
77
78public:
79 // static functions
80 // NOLINTBEGIN
81 MCAPI static ::std::vector<::std::pair<::gsl::not_null<::BannerPattern const*>, ::ItemColor>>
82 getPatternAndColorPairsFromItemStack(::ItemStackBase const& item);
83 // NOLINTEND
84
85public:
86 // constructor thunks
87 // NOLINTBEGIN
88 MCNAPI void* $ctor(::std::string const& name, int id);
89 // NOLINTEND
90
91public:
92 // virtual function thunks
93 // NOLINTBEGIN
94 MCNAPI ::InteractionResult $_useOn(
95 ::ItemStack& instance,
96 ::Actor& actor,
97 ::BlockPos pos,
98 uchar face,
99 ::HandSlot handSlot,
100 ::Vec3 const& clickPos
101 ) const;
102
103 MCNAPI ::std::string
104 $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const;
105
106 MCNAPI ::Rarity $getRarity(::ItemStackBase const& stack) const;
107
109 ::ItemStackBase const& stack,
110 ::Level& level,
112 bool const showCategory
113 ) const;
114
115 MCNAPI bool $isValidAuxValue(int auxValue) const;
116
117 MCNAPI bool $isWearableThroughLootTable(::CompoundTag const* userData) const;
118
119 MCNAPI void $fixupCommon(::ItemStackBase& item) const;
120
121
122 // NOLINTEND
123
124public:
125 // vftables
126 // NOLINTBEGIN
127 MCNAPI static void** $vftable();
128 // NOLINTEND
129};
Definition Actor.h:116
MCAPI void * $ctor(::std::string const &name, int id)
MCAPI bool $isValidAuxValue(int auxValue) const
static MCAPI void ** $vftable()
MCAPI void $appendFormattedHovertext(::ItemStackBase const &stack, ::Level &level, ::Bedrock::Safety::RedactableString &hovertext, bool const showCategory) const
MCAPI void $fixupCommon(::ItemStackBase &item) const
MCAPI::Rarity $getRarity(::ItemStackBase const &stack) const
MCAPI BannerItem(::std::string const &name, int id)
MCAPI bool $isWearableThroughLootTable(::CompoundTag const *userData) const
MCAPI::InteractionResult $_useOn(::ItemStack &instance, ::Actor &actor, ::BlockPos pos, uchar face, ::HandSlot handSlot, ::Vec3 const &clickPos) const
MCAPI::std::string $buildDescriptionId(::ItemDescriptor const &itemDescriptor, ::CompoundTag const *userData) const
Definition BannerPattern.h:14
Definition RedactableString.h:10
Definition BlockPos.h:14
Definition Block.h:42
Definition CompoundTag.h:18
Definition InteractionResult.h:5
Definition ItemDescriptor.h:24
Definition ItemStackBase.h:45
Definition ItemStack.h:26
Definition Level.h:255
Definition Vec3.h:10