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