Skip to content
LeviMC
English
AutoLightDark
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/ItemTransformType.h"
9#include "mc/world/item/components/NetworkedItemComponent.h"
10#include "mc/world/level/storage/AllExperiments.h"
11
12// auto generated forward declare list
13// clang-format off
14class Matrix;
15class SemVersion;
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 // static functions
45 // NOLINTBEGIN
46 MCNAPI static ::Matrix _getDisplayTransform(
49 ::ItemTransformType type
50 );
51
52#ifdef LL_PLAT_C
53 MCNAPI static ::Matrix _matrixFromTrs(::SharedTypes::Legacy::RenderOffsetsItemComponent::TRS const& trs);
54#endif
55
56#ifdef LL_PLAT_S
57 MCNAPI static ::Matrix _matrixFromTrs(::SharedTypes::Legacy::RenderOffsetsItemComponent::TRS const& trs);
58#endif
59
60 MCNAPI static void bindType(
62 ::std::vector<::AllExperiments> const& requiredToggles,
63 ::std::optional<::SemVersion> releasedMinFormatVersion
64 );
65
66#ifdef LL_PLAT_C
67 MCNAPI static void buildMatrixFromDefaults(
69 ::RenderOffsetsItemComponent::Hand hand,
70 ::RenderOffsetsItemComponent::Perspective perspective,
71 float textureScale
72 );
73#endif
74 // NOLINTEND
75
76public:
77 // static variables
78 // NOLINTBEGIN
79 MCNAPI static ::SharedTypes::Legacy::RenderOffsetsItemComponent::ItemTransforms& Main_Hand_Defaults();
80
81 MCNAPI static ::SharedTypes::Legacy::RenderOffsetsItemComponent::ItemTransforms& Off_Hand_Defaults();
82 // NOLINTEND
83
84public:
85 // vftables
86 // NOLINTBEGIN
87 MCNAPI static void** $vftable();
88 // NOLINTEND
89};
Definition Matrix.h:10
Definition NetworkedItemComponent.h:7
Definition RenderOffsetsItemComponent.h:19
static MCAPI ::Matrix _getDisplayTransform(::SharedTypes::Legacy::RenderOffsetsItemComponent::ItemTransforms const &mainHand, ::SharedTypes::Legacy::RenderOffsetsItemComponent::ItemTransforms const &offhand, ::ItemTransformType type)
static MCAPI ::SharedTypes::Legacy::RenderOffsetsItemComponent::ItemTransforms & Off_Hand_Defaults()
static MCAPI void ** $vftable()
static MCAPI void bindType(::cereal::ReflectionCtx &ctx, ::std::vector<::AllExperiments > const &requiredToggles, ::std::optional<::SemVersion > releasedMinFormatVersion)
static MCAPI ::SharedTypes::Legacy::RenderOffsetsItemComponent::ItemTransforms & Main_Hand_Defaults()
Definition SemVersion.h:15
Definition MatrixStack.h:13
Definition RenderOffsetsItemComponent.h:31
Definition RenderOffsetsItemComponent.h:21
Definition ReflectionCtx.h:11
Definition ctx.h:5