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;
13class ExpressionNode;
14class GameVersion;
15class HashedString;
16class ItemStack;
17class RenderParams;
18class Vec3;
19struct ActorRenderData;
21// clang-format on
22
23class DataDrivenModel : public ::Model {
24public:
25 // member variables
26 // NOLINTBEGIN
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 DataDrivenModel& operator=(DataDrivenModel const&);
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 ::ExpressionNode getCopyOfScript_defaultIfNone(::HashedString const& name) const;
62
63 MCNAPI ::std::weak_ptr<::DataDrivenRenderer>
64 getDataDrivenRenderer(::RenderParams& renderParams, ::ItemStack const& itemInstance);
65
66 MCNAPI ::std::string getResourceDefinitionName() const;
67
68 MCNAPI bool hasScript(::HashedString const& name) const;
69
70 MCNAPI void render(
71 ::std::shared_ptr<::DataDrivenRenderer> renderer,
72 ::ActorRenderData& actorRenderData,
73 ::Vec3 const& modelTranslationWithWorldRotation,
74 ::Vec3 const& cameraTargetPos
75 );
76
77 MCNAPI void renderAsChild(::RenderParams& renderParams, ::AttachableSlotIndex const& index);
78
79 MCNAPI void renderAttachable(
80 ::ItemStack const& itemInstance,
81 ::AttachableSlotIndex const& attachableSlotIndex,
82 ::RenderParams& renderParams,
83 ::Actor& actor
84 );
85
87 ::ItemStack const& itemInstance,
88 ::AttachableSlotIndex const& attachableSlotIndex,
89 ::RenderParams& renderParams,
90 ::Actor& actor
91 );
92
93 MCNAPI void setupAttachable(
94 ::ItemStack const& itemInstance,
95 ::AttachableSlotIndex const& attachableSlotIndex,
96 ::RenderParams& renderParams,
97 ::Actor& actor
98 );
99
101 ::ItemStack const& itemInstance,
102 ::AttachableSlotIndex const& attachableSlotIndex,
103 ::RenderParams& renderParams,
104 ::Actor& actor,
105 bool isFirstPerson,
106 bool runParentSetup
107 );
108
109 MCNAPI bool tryExecuteScript(::HashedString const& scriptName, ::RenderParams& renderParams, float& result);
110 // NOLINTEND
111
112public:
113 // static functions
114 // NOLINTBEGIN
115 MCNAPI static bool shouldRenderAttachable(
116 ::ItemStack const& itemInstance,
117 ::AttachableSlotIndex const& attachableSlotIndex,
118 bool isFirstPerson,
119 bool lessThanOrEqualToVersion_1_16_210,
120 bool hideArmor
121 );
122 // NOLINTEND
123
124public:
125 // static variables
126 // NOLINTBEGIN
127 MCNAPI static ::GameVersion& Version_1_16_210();
128 // NOLINTEND
129
130public:
131 // constructor thunks
132 // NOLINTBEGIN
133 MCNAPI void* $ctor(::std::weak_ptr<::ActorResourceDefinition> definitionWeakPtr);
134 // NOLINTEND
135
136public:
137 // vftables
138 // NOLINTBEGIN
139 MCNAPI static void** $vftable();
140 // NOLINTEND
141};
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 ::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 Model.h:5
Definition ActorRenderData.h:5
Definition ActorResourceDefinition.h:5
Definition Alias.h:14