LeviLamina
Loading...
Searching...
No Matches
DataDrivenModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/model/models/Model.h"
7#include "mc/world/actor/animation/AttachableSlotIndex.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class ActorRenderData;
14class ExpressionNode;
15class GameVersion;
16class HashedString;
17class ItemStack;
18class RenderParams;
19class Vec3;
21// clang-format on
22
23class DataDrivenModel : public ::Model {
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::UntypedStorage<8, 16> mUnk7350c7;
28 ::ll::UntypedStorage<8, 48> mUnk716b58;
29 ::ll::UntypedStorage<8, 64> mUnk1aee8d;
30 ::ll::UntypedStorage<1, 1> mUnkb6b6be;
31 ::ll::UntypedStorage<1, 1> mUnke411d6;
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 DataDrivenModel& operator=(DataDrivenModel const&);
37 DataDrivenModel(DataDrivenModel const&);
38 DataDrivenModel();
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 virtual ~DataDrivenModel() /*override*/ = default;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCNAPI explicit DataDrivenModel(::std::weak_ptr<::ActorResourceDefinition> definitionWeakPtr);
50
51 MCNAPI ::HashedString _parseRootSkinName(::HashedString const& skinName);
52
53 MCNAPI bool _setArmorTrim(
54 ::ItemStack const& itemInstance,
55 ::std::shared_ptr<::DataDrivenModel> model,
56 ::Actor& actor,
57 ::RenderParams& renderParams,
58 ::RenderParams& childRenderParams
59 );
60
61 MCNAPI float
62 executeScript(::HashedString const& scriptName, ::RenderParams& renderParams, float defaultValueIfNoScript);
63
64 MCNAPI ::ExpressionNode getCopyOfScript_defaultIfNone(::HashedString const& name) const;
65
66 MCNAPI ::std::weak_ptr<::DataDrivenRenderer>
67 getDataDrivenRenderer(::RenderParams& renderParams, ::ItemStack const& itemInstance);
68
69 MCNAPI ::std::string getResourceDefinitionName() const;
70
71 MCNAPI bool hasScript(::HashedString const& name) const;
72
73 MCNAPI void render(
74 ::std::shared_ptr<::DataDrivenRenderer> renderer,
75 ::ActorRenderData& actorRenderData,
76 ::Vec3 const& modelTranslationWithWorldRotation,
77 ::Vec3 const& cameraTargetPos
78 );
79
80 MCNAPI void renderAsChild(::RenderParams& renderParams, ::AttachableSlotIndex const& index);
81
82 MCNAPI void renderAttachable(
83 ::ItemStack const& itemInstance,
84 ::AttachableSlotIndex const& attachableSlotIndex,
85 ::RenderParams& renderParams,
86 ::Actor& actor
87 );
88
90 ::ItemStack const& itemInstance,
91 ::AttachableSlotIndex const& attachableSlotIndex,
92 ::RenderParams& renderParams,
93 ::Actor& actor
94 );
95
96 MCNAPI void setupAttachable(
97 ::ItemStack const& itemInstance,
98 ::AttachableSlotIndex const& attachableSlotIndex,
99 ::RenderParams& renderParams,
100 ::Actor& actor
101 );
102
104 ::ItemStack const& itemInstance,
105 ::AttachableSlotIndex const& attachableSlotIndex,
106 ::RenderParams& renderParams,
107 ::Actor& actor,
108 bool isFirstPerson,
109 bool runParentSetup
110 );
111
112 MCNAPI bool tryExecuteScript(::HashedString const& scriptName, ::RenderParams& renderParams, float& result);
113 // NOLINTEND
114
115public:
116 // static functions
117 // NOLINTBEGIN
118 MCNAPI static bool shouldRenderAttachable(
119 ::ItemStack const& itemInstance,
120 ::AttachableSlotIndex const& attachableSlotIndex,
121 bool isFirstPerson,
122 bool lessThanOrEqualToVersion_1_16_210,
123 bool hideArmor
124 );
125 // NOLINTEND
126
127public:
128 // static variables
129 // NOLINTBEGIN
130 MCNAPI static ::GameVersion& Version_1_16_210();
131 // NOLINTEND
132
133public:
134 // constructor thunks
135 // NOLINTBEGIN
136 MCNAPI void* $ctor(::std::weak_ptr<::ActorResourceDefinition> definitionWeakPtr);
137 // NOLINTEND
138
139public:
140 // vftables
141 // NOLINTBEGIN
142 MCNAPI static void** $vftable();
143 // NOLINTEND
144};
Definition ActorRenderData.h:5
Definition Actor.h:105
Definition DataDrivenModel.h:5
MCAPI void render(::std::shared_ptr<::DataDrivenRenderer > renderer, ::ActorRenderData &actorRenderData, ::Vec3 const &modelTranslationWithWorldRotation, ::Vec3 const &cameraTargetPos)
MCAPI DataDrivenModel(::std::weak_ptr<::ActorResourceDefinition > definitionWeakPtr)
static MCAPI bool shouldRenderAttachable(::ItemStack const &itemInstance, ::AttachableSlotIndex const &attachableSlotIndex, bool isFirstPerson, bool lessThanOrEqualToVersion_1_16_210, bool hideArmor)
MCAPI void * $ctor(::std::weak_ptr<::ActorResourceDefinition > definitionWeakPtr)
MCAPI void renderAsChild(::RenderParams &renderParams, ::AttachableSlotIndex const &index)
MCAPI bool tryExecuteScript(::HashedString const &scriptName, ::RenderParams &renderParams, float &result)
MCAPI bool hasScript(::HashedString const &name) const
MCAPI bool _setArmorTrim(::ItemStack const &itemInstance, ::std::shared_ptr<::DataDrivenModel > model, ::Actor &actor, ::RenderParams &renderParams, ::RenderParams &childRenderParams)
MCAPI void setupAttachableNoChecks(::ItemStack const &itemInstance, ::AttachableSlotIndex const &attachableSlotIndex, ::RenderParams &renderParams, ::Actor &actor, bool isFirstPerson, bool runParentSetup)
MCAPI void renderAttachable(::ItemStack const &itemInstance, ::AttachableSlotIndex const &attachableSlotIndex, ::RenderParams &renderParams, ::Actor &actor)
MCAPI float executeScript(::HashedString const &scriptName, ::RenderParams &renderParams, float defaultValueIfNoScript)
MCAPI ::std::weak_ptr<::DataDrivenRenderer > getDataDrivenRenderer(::RenderParams &renderParams, ::ItemStack const &itemInstance)
static MCAPI void ** $vftable()
MCAPI::HashedString _parseRootSkinName(::HashedString const &skinName)
MCAPI::ExpressionNode getCopyOfScript_defaultIfNone(::HashedString const &name) const
MCAPI void renderAttachableNoChecks(::ItemStack const &itemInstance, ::AttachableSlotIndex const &attachableSlotIndex, ::RenderParams &renderParams, ::Actor &actor)
MCAPI::std::string getResourceDefinitionName() const
MCAPI void setupAttachable(::ItemStack const &itemInstance, ::AttachableSlotIndex const &attachableSlotIndex, ::RenderParams &renderParams, ::Actor &actor)
static MCAPI ::GameVersion & Version_1_16_210()
Definition DataDrivenRenderer.h:5
Definition ExpressionNode.h:33
Definition GameVersion.h:10
Definition HashedString.h:5
Definition ItemStack.h:26
Definition Model.h:5
Definition RenderParams.h:30
Definition Vec3.h:10
Definition ActorResourceDefinition.h:5