LeviLamina
Loading...
Searching...
No Matches
DyeableItemComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/components/NetworkedItemComponent.h"
7#include "mc/world/level/storage/AllExperiments.h"
8
9// auto generated forward declare list
10// clang-format off
11class CompoundTag;
12class HashedString;
13class ItemDescriptor;
14class ItemStackBase;
15class SemVersion;
16namespace Bedrock::Safety { class RedactableString; }
17namespace SharedTypes { struct Color255RGB; }
18namespace cereal { struct ReflectionCtx; }
19namespace mce { class Color; }
20// clang-format on
21
22class DyeableItemComponent : public ::NetworkedItemComponent<::DyeableItemComponent> {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<4, 16, ::SharedTypes::Color255RGB> mDefaultColor;
27 // NOLINTEND
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 // vIndex: 0
33 virtual ~DyeableItemComponent() /*override*/ = default;
34 // NOLINTEND
35
36public:
37 // member functions
38 // NOLINTBEGIN
39 MCAPI void
40 appendFormattedHovertext(::ItemStackBase const& item, ::Bedrock::Safety::RedactableString& hovertext, bool) const;
41
42 MCFOLD void clearColor(::ItemStackBase& instance) const;
43
44 MCAPI ::mce::Color getColor(::CompoundTag const* userData, ::ItemDescriptor const&) const;
45
46 MCAPI bool hasCustomColor(::ItemStackBase const& instance) const;
47
48 MCAPI void setColor(::ItemStackBase& instance, ::mce::Color const& color) const;
49 // NOLINTEND
50
51public:
52 // static functions
53 // NOLINTBEGIN
54 MCAPI static void bindType(
56 ::std::vector<::AllExperiments> const& releasedMinFormatVersion,
57 ::std::optional<::SemVersion> requiredToggles
58 );
59
60 MCAPI static ::HashedString const& getIdentifier();
61 // NOLINTEND
62
63public:
64 // destructor thunk
65 // NOLINTBEGIN
66
67 // NOLINTEND
68
69public:
70 // vftables
71 // NOLINTBEGIN
72 MCAPI static void** $vftable();
73 // NOLINTEND
74};
Definition RedactableString.h:10
Definition CompoundTag.h:13
Definition DyeableItemComponent.h:22
Definition HashedString.h:5
Definition ItemDescriptor.h:22
Definition ItemStackBase.h:35
Definition NetworkedItemComponent.h:6
Definition SemVersion.h:15
Definition Color.h:13
Definition ReflectionCtx.h:11
Definition ctx.h:5