LeviLamina
Loading...
Searching...
No Matches
RenderParams.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec3.h"
7#include "mc/deps/minecraft_renderer/game/ShadowContext.h"
8#include "mc/deps/shared_types/legacy/FilterSubject.h"
9#include "mc/util/MolangScriptArg.h"
10#include "mc/world/actor/animation/AttachableSlotIndex.h"
11#include "mc/world/level/BlockPos.h"
12#include "mc/world/response/ResponseParameterContext.h"
13
14// auto generated forward declare list
15// clang-format off
16class Actor;
19class Block;
20class BlockSource;
22class ILevel;
23class ItemStackBase;
25class ActorRenderData;
26class DataDrivenModel;
27namespace ParticleSystem { class ParticleEmitter; }
28// clang-format on
29
30class RenderParams {
31public:
32 // RenderParams inner types declare
33 // clang-format off
34 struct Flags;
35 // clang-format on
36
37 // RenderParams inner types define
38 struct Flags {
39 public:
40 // member variables
41 // NOLINTBEGIN
42 ::ll::TypedStorage<4, 4, uint> mIsChild;
43 // NOLINTEND
44 };
45
46public:
47 // member variables
48 // NOLINTBEGIN
49 ::ll::TypedStorage<8, 8, ::BaseActorRenderContext*> mBaseActorRenderContext;
50 ::ll::TypedStorage<8, 8, ::MolangVariableMap*> mVariables;
51 ::ll::TypedStorage<8, 8, ::AnimationComponent*> mAnimationComponent;
52 ::ll::TypedStorage<8, 8, ::AnimationComponent*> mRootAnimationComponent;
53 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::DataDrivenModel>> mModel;
54 ::ll::TypedStorage<4, 4, ::ResponseParameterContext> mSourceContext;
55 ::ll::TypedStorage<8, 8, ::Actor*> mActor;
56 ::ll::TypedStorage<8, 8, ::Actor*> mOther;
57 ::ll::TypedStorage<8, 8, ::Actor*> mPlayer;
58 ::ll::TypedStorage<8, 8, ::Actor*> mTarget;
59 ::ll::TypedStorage<8, 8, ::Actor*> mParent;
60 ::ll::TypedStorage<8, 8, ::Actor*> mBaby;
61 ::ll::TypedStorage<8, 8, ::Actor*> mDamager;
62 ::ll::TypedStorage<8, 8, ::ILevel*> mLevel;
63 ::ll::TypedStorage<8, 8, ::ItemStackBase*> mItemStackBasePtr;
64 ::ll::TypedStorage<8, 8, ::Block const*> mBlock;
65 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
66 ::ll::TypedStorage<8, 8, ::BlockSource*> mBlockSource;
67 ::ll::TypedStorage<8, 8, ::ActorRenderData*> mActorRenderData;
68 ::ll::TypedStorage<8, 8, ::ParticleSystem::ParticleEmitter*> mParticleEmitter;
69 ::ll::TypedStorage<8, 8, ::IBlockWorldGenAPI*> mBlockPlacementTarget;
70 ::ll::TypedStorage<2, 2, ushort> mSubRenderLayerIndex;
71 ::ll::TypedStorage<8, 64, ::std::function<float()>> mRandomFunction;
72 ::ll::TypedStorage<4, 4, float> mCameraDistance;
73 ::ll::TypedStorage<1, 1, ::ShadowContext> mShadowContext;
74 ::ll::TypedStorage<4, 32, float[8]> mParams;
75#ifdef LL_PLAT_S
76 ::ll::TypedStorage<8, 88, ::MolangScriptArg> mThisValue;
77 ::ll::TypedStorage<8, 88, ::MolangScriptArg> mScratchValue;
78#else // LL_PLAT_C
79 ::ll::TypedStorage<8, 96, ::MolangScriptArg> mThisValue;
80 ::ll::TypedStorage<8, 96, ::MolangScriptArg> mScratchValue;
81#endif
82 ::ll::TypedStorage<4, 4, ::RenderParams::Flags> mFlags;
83 ::ll::TypedStorage<4, 12, ::Vec3> mClickPos;
84 ::ll::TypedStorage<4, 4, ::AttachableSlotIndex> mSlotIndex;
85 ::ll::TypedStorage<1, 1, bool> mIsDitheringEnabled;
86 // NOLINTEND
87
88public:
89 // member functions
90 // NOLINTBEGIN
91 MCAPI RenderParams();
92
93 MCAPI RenderParams(::RenderParams&&);
94
95 MCAPI RenderParams(::RenderParams const&);
96
97 MCAPI ::Actor* getActorTarget(::SharedTypes::Legacy::FilterSubject subject) const;
98
99 MCAPI ::RenderParams& init(
100 ::BaseActorRenderContext* baseActorRenderContext,
101 ::Actor* actor,
102 ::AnimationComponent* animationComponent,
103 ::MolangVariableMap* variableMap,
104 ::std::shared_ptr<::DataDrivenModel> model,
105 float frameAlpha,
106 float modelScale,
107 bool isDitheringEnabled
108 );
109
110 MCAPI ::RenderParams& operator=(::RenderParams&&);
111
112 MCAPI ::RenderParams& operator=(::RenderParams const&);
113
114 MCAPI ~RenderParams();
115 // NOLINTEND
116
117public:
118 // constructor thunks
119 // NOLINTBEGIN
120 MCAPI void* $ctor();
121
122 MCAPI void* $ctor(::RenderParams&&);
123
124 MCAPI void* $ctor(::RenderParams const&);
125 // NOLINTEND
126
127public:
128 // destructor thunk
129 // NOLINTBEGIN
130 MCAPI void $dtor();
131 // NOLINTEND
132};
Definition ActorRenderData.h:5
Definition Actor.h:105
Definition AnimationComponent.h:36
Definition BaseActorRenderContext.h:34
Definition BlockSource.h:68
Definition Block.h:43
Definition DataDrivenModel.h:5
Definition IBlockWorldGenAPI.h:25
Definition ILevel.h:214
Definition ItemStackBase.h:44
Definition MolangVariableMap.h:17
Definition ParticleEmitter.h:7
Definition RenderParams.h:38