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/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 cereal { struct ReflectionCtx; }
15// clang-format on
16
17class RenderOffsetsItemComponent : public ::NetworkedItemComponent<::RenderOffsetsItemComponent> {
18public:
19 // RenderOffsetsItemComponent inner types declare
20 // clang-format off
21 struct TRS;
22 struct ItemTransforms;
23 // clang-format on
24
25 // RenderOffsetsItemComponent inner types define
26 enum class Hand : int {
27 MainHand = 0,
28 OffHand = 1,
29 };
30
31 enum class Perspective : int {
32 FirstPerson = 0,
33 ThirdPerson = 1,
34 };
35
36 struct TRS {
37 public:
38 // member variables
39 // NOLINTBEGIN
40 ::ll::TypedStorage<4, 12, ::std::array<float, 3>> mTranslation;
41 ::ll::TypedStorage<4, 12, ::std::array<float, 3>> mRotation;
42 ::ll::TypedStorage<4, 12, ::std::array<float, 3>> mScale;
43 // NOLINTEND
44
45 public:
46 // member functions
47 // NOLINTBEGIN
48 MCAPI bool operator==(::RenderOffsetsItemComponent::TRS const& other) const;
49 // NOLINTEND
50 };
51
53 public:
54 // member variables
55 // NOLINTBEGIN
56 ::ll::TypedStorage<4, 36, ::RenderOffsetsItemComponent::TRS> mFirstPerson;
57 ::ll::TypedStorage<4, 36, ::RenderOffsetsItemComponent::TRS> mThirdPerson;
58 // NOLINTEND
59
60 public:
61 // member functions
62 // NOLINTBEGIN
63 MCAPI bool operator==(::RenderOffsetsItemComponent::ItemTransforms const& other) const;
64 // NOLINTEND
65 };
66
67public:
68 // member variables
69 // NOLINTBEGIN
70 ::ll::TypedStorage<4, 72, ::RenderOffsetsItemComponent::ItemTransforms> mMainHand;
71 ::ll::TypedStorage<4, 72, ::RenderOffsetsItemComponent::ItemTransforms> mOffhand;
72 // NOLINTEND
73
74public:
75 // virtual functions
76 // NOLINTBEGIN
77 virtual ~RenderOffsetsItemComponent() /*override*/ = default;
78 // NOLINTEND
79
80public:
81 // static functions
82 // NOLINTBEGIN
83 MCAPI_C static void _buildMatrixFromData(
86 ::RenderOffsetsItemComponent::Perspective perspective
87 );
88
89 MCAPI static void bindType(
91 ::std::vector<::AllExperiments> const& requiredToggles,
92 ::std::optional<::SemVersion> releasedMinFormatVersion
93 );
94
95 MCAPI static ::HashedString const& getIdentifier();
96 // NOLINTEND
97
98public:
99 // static variables
100 // NOLINTBEGIN
101 MCAPI static ::RenderOffsetsItemComponent::ItemTransforms& Main_Hand_Defaults();
102
103 MCAPI static ::RenderOffsetsItemComponent::ItemTransforms& Off_Hand_Defaults();
104 // NOLINTEND
105
106public:
107 // vftables
108 // NOLINTBEGIN
109 MCNAPI static void** $vftable();
110 // NOLINTEND
111};
Definition HashedString.h:5
Definition NetworkedItemComponent.h:7
Definition RenderOffsetsItemComponent.h:17
static MCAPI void ** $vftable()
Definition SemVersion.h:15
Definition MatrixStack.h:18
Definition RenderOffsetsItemComponent.h:52
Definition RenderOffsetsItemComponent.h:36
Definition ReflectionCtx.h:11
Definition ctx.h:5