LeviLamina
Loading...
Searching...
No Matches
RecordItemComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/LevelSoundEvent.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 HashedString;
13class SemVersion;
14namespace Bedrock::Safety { class RedactableString; }
15namespace SharedTypes::v1_20_50 { struct RecordItemComponent; }
16namespace cereal { struct ReflectionCtx; }
17// clang-format on
18
19class RecordItemComponent : public ::NetworkedItemComponent<::RecordItemComponent> {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::LevelSoundEvent> mSoundEvent;
24 ::ll::TypedStorage<4, 4, float> mDuration;
25 ::ll::TypedStorage<4, 4, int> mComparatorSignal;
26 // NOLINTEND
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCAPI RecordItemComponent();
32
33 MCAPI explicit RecordItemComponent(::SharedTypes::v1_20_50::RecordItemComponent component);
34
35 MCAPI RecordItemComponent(::SharedTypes::Legacy::LevelSoundEvent soundEvent, float duration, int comparatorSignal);
36
37 MCAPI void appendFormattedHovertext(::Bedrock::Safety::RedactableString& hovertext) const;
38
39 MCFOLD int getComparatorSignal() const;
40
41 MCFOLD float getDuration() const;
42
43 MCAPI ::std::string getRecordDescription() const;
44
45 MCFOLD ::SharedTypes::Legacy::LevelSoundEvent getSound() const;
46 // NOLINTEND
47
48public:
49 // static functions
50 // NOLINTBEGIN
51 MCAPI static void bindType(
53 ::std::vector<::AllExperiments> const& requiredToggles,
54 ::std::optional<::SemVersion> releasedMinFormatVersion
55 );
56
57 MCAPI static ::HashedString const& getIdentifier();
58
59 MCAPI static ::std::string getRecordNameNoPrefix(::SharedTypes::Legacy::LevelSoundEvent sound);
60 // NOLINTEND
61
62public:
63 // constructor thunks
64 // NOLINTBEGIN
65 MCAPI void* $ctor();
66
67 MCAPI void* $ctor(::SharedTypes::v1_20_50::RecordItemComponent component);
68
69 MCAPI void* $ctor(::SharedTypes::Legacy::LevelSoundEvent soundEvent, float duration, int comparatorSignal);
70 // NOLINTEND
71
72public:
73 // vftables
74 // NOLINTBEGIN
75 MCNAPI static void** $vftable();
76 // NOLINTEND
77};
Definition RedactableString.h:10
Definition HashedString.h:5
Definition NetworkedItemComponent.h:7
static MCAPI void ** $vftable()
Definition SemVersion.h:15
Definition RecordItemComponent.h:15
Definition ReflectionCtx.h:11
Definition ctx.h:5