LeviLamina
Loading...
Searching...
No Matches
RenderOffsetsItemComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/renderer/MatrixStack.h"
7#include "mc/deps/shared_types/legacy/item/RenderOffsetsItemComponent.h"
8#include "mc/world/item/components/NetworkedItemComponent.h"
9#include "mc/world/level/storage/AllExperiments.h"
10
11// auto generated forward declare list
12// clang-format off
13class HashedString;
14class SemVersion;
15namespace SharedTypes::Legacy { struct RenderOffsetsItemComponent; }
16namespace cereal { struct ReflectionCtx; }
17// clang-format on
18
19class RenderOffsetsItemComponent : public ::NetworkedItemComponent<::RenderOffsetsItemComponent> {
20public:
21 // RenderOffsetsItemComponent inner types define
22 enum class Hand : int {
23 MainHand = 0,
24 OffHand = 1,
25 };
26
27 enum class Perspective : int {
28 FirstPerson = 0,
29 ThirdPerson = 1,
30 };
31
33
35
36public:
37 // member variables
38 // NOLINTBEGIN
39 ::ll::TypedStorage<4, 72, ::SharedTypes::Legacy::RenderOffsetsItemComponent::ItemTransforms> mMainHand;
40 ::ll::TypedStorage<4, 72, ::SharedTypes::Legacy::RenderOffsetsItemComponent::ItemTransforms> mOffhand;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI RenderOffsetsItemComponent();
47
48 MCAPI explicit RenderOffsetsItemComponent(::SharedTypes::Legacy::RenderOffsetsItemComponent const& data);
49
50#ifdef LL_PLAT_C
51 MCAPI void buildMatrixFromData(
53 ::RenderOffsetsItemComponent::Hand hand,
54 ::RenderOffsetsItemComponent::Perspective perspective
55 ) const;
56#endif
57 // NOLINTEND
58
59public:
60 // static functions
61 // NOLINTBEGIN
62#ifdef LL_PLAT_C
63 MCAPI static void _buildMatrixFromData(
66 ::RenderOffsetsItemComponent::Perspective perspective
67 );
68#endif
69
70 MCFOLD static void _fromString(::RenderOffsetsItemComponent&, ::std::string const&);
71
72 MCAPI static void bindType(
74 ::std::vector<::AllExperiments> const& requiredToggles,
75 ::std::optional<::SemVersion> releasedMinFormatVersion
76 );
77
78#ifdef LL_PLAT_C
79 MCAPI static void buildMatrixFromDefaults(
81 ::RenderOffsetsItemComponent::Hand hand,
82 ::RenderOffsetsItemComponent::Perspective perspective,
83 float textureScale
84 );
85#endif
86
87 MCAPI static ::HashedString const& getIdentifier();
88 // NOLINTEND
89
90public:
91 // static variables
92 // NOLINTBEGIN
93 MCAPI static ::SharedTypes::Legacy::RenderOffsetsItemComponent::ItemTransforms& Main_Hand_Defaults();
94
95 MCAPI static ::SharedTypes::Legacy::RenderOffsetsItemComponent::ItemTransforms& Off_Hand_Defaults();
96 // NOLINTEND
97
98public:
99 // constructor thunks
100 // NOLINTBEGIN
101 MCAPI void* $ctor();
102
103 MCAPI void* $ctor(::SharedTypes::Legacy::RenderOffsetsItemComponent const& data);
104 // NOLINTEND
105
106public:
107 // vftables
108 // NOLINTBEGIN
109 MCNAPI static void** $vftable();
110 // NOLINTEND
111};
Definition HashedString.h:5
Definition NetworkedItemComponent.h:7
static MCAPI void ** $vftable()
Definition SemVersion.h:15
Definition MatrixStack.h:13
Definition RenderOffsetsItemComponent.h:31
Definition RenderOffsetsItemComponent.h:21
Definition RenderOffsetsItemComponent.h:12
Definition ReflectionCtx.h:11
Definition ctx.h:5