LeviLamina
Loading...
Searching...
No Matches
ActorRenderData.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec2.h"
7#include "mc/deps/core/math/Vec3.h"
8#include "mc/deps/minecraft_renderer/framebuilder/CustomSurfaceShaderMetadata.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
15class ItemStack;
16class Matrix;
17class Mob;
19class RenderParams;
20class Vec4;
21namespace mce { class Color; }
22// clang-format on
23
24class ActorRenderData {
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 8, ::Actor*> mActor;
29 ::ll::TypedStorage<8, 8, ::ItemStack const*> mItemStack;
30 ::ll::TypedStorage<4, 12, ::Vec3> position;
31 ::ll::TypedStorage<4, 8, ::Vec2> rotation;
32 ::ll::TypedStorage<4, 8, ::Vec2> mHeadRot;
33 ::ll::TypedStorage<1, 1, bool> glint;
34 ::ll::TypedStorage<1, 1, bool> mIgnoreLighting;
35 ::ll::TypedStorage<1, 1, bool> mIsInUI;
36 ::ll::TypedStorage<4, 4, float> mDeltaTime;
37 ::ll::TypedStorage<8, 8, ::AnimationComponent&> mAnimationComponent;
38 ::ll::TypedStorage<8, 8, ::MolangVariableMap&> mVariables;
39 ::ll::TypedStorage<4, 8, ::mce::framebuilder::CustomSurfaceShaderMetadata> mCSSMetadata;
40 // NOLINTEND
41
42public:
43 // prevent constructor by default
44 ActorRenderData& operator=(ActorRenderData const&);
45 ActorRenderData(ActorRenderData const&);
46 ActorRenderData();
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCAPI ActorRenderData(
52 bool isInUI,
53 ::AnimationComponent& animationComponent,
54 ::MolangVariableMap& variables,
55 ::Vec3 const& cameraTargetPosition,
56 float frameAlpha
57 );
58
59 MCAPI void _UI_setupShading(
60 ::BaseActorRenderContext& renderContext,
61 ::mce::Color const&,
62 ::mce::Color const&,
63 ::mce::Color const&,
64 ::Vec4 const& uvAnim,
65 float,
66 bool,
67 bool
68 ) const;
69
70 MCAPI void applyGlobalAnims(::Matrix& worldMatrix, ::BaseActorRenderContext& renderContext) const;
71
72 MCAPI void update(float frameAlpha, ::Vec3 const& cameraTargetPosition);
73
74 MCAPI void updateMolangVariables(::RenderParams& renderParams) const;
75 // NOLINTEND
76
77public:
78 // static functions
79 // NOLINTBEGIN
80 MCAPI static ::std::optional<::std::pair<float, float>>
81 getDamageOrGlidingXYRotation(::Mob const& mob, float actorFrameAlpha, bool isFirstPersonPlayer);
82
83 MCAPI static float getDeathRotation(::Mob const& mob, float actorFrameAlpha);
84
85 MCAPI static bool getIsFirstPersonPlayer(::Mob& mob);
86
87 MCAPI static ::std::optional<::std::pair<float, float>> getNamedRotationAndOffset(::Mob const& mob);
88 // NOLINTEND
89
90public:
91 // constructor thunks
92 // NOLINTBEGIN
93 MCAPI void* $ctor(
94 bool isInUI,
95 ::AnimationComponent& animationComponent,
96 ::MolangVariableMap& variables,
97 ::Vec3 const& cameraTargetPosition,
98 float frameAlpha
99 );
100 // NOLINTEND
101};
Definition ActorRenderData.h:5
Definition Actor.h:106
Definition AnimationComponent.h:36
Definition BaseActorRenderContext.h:5
Definition ItemStack.h:26
Definition Matrix.h:10
Definition Mob.h:51
Definition MolangVariableMap.h:17
Definition RenderParams.h:30
Definition Vec4.h:5
Definition Color.h:13