Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
MaterialInstancesComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/cereal/ConstraintHandle.h"
7#include "mc/deps/cereal/ContextArea.h"
8#include "mc/deps/shared_types/util/Reference.h"
9#include "mc/deps/shared_types/v1_26_20/block/BlockRenderLayer.h"
10#include "mc/deps/shared_types/v1_26_20/block/TintMethod.h"
11
12// auto generated forward declare list
13// clang-format off
14namespace cereal { struct ReflectionCtx; }
15namespace cereal::internal { struct ConstraintDescription; }
16// clang-format on
17
18namespace SharedTypes::v1_26_20::BlockDefinition {
19
20struct MaterialInstancesComponent {
21public:
22 // MaterialInstancesComponent inner types declare
23 // clang-format off
24 struct MaterialInstance;
26 // clang-format on
27
28 // MaterialInstancesComponent inner types define
30 public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<8, 32, ::SharedTypes::Reference<4>> mTextureName;
34 ::ll::TypedStorage<4, 4, float> mAmbientOcclusion;
35 ::ll::TypedStorage<1, 1, ::SharedTypes::v1_26_20::BlockRenderLayer> mRenderLayer;
36 ::ll::TypedStorage<1, 1, ::SharedTypes::v1_26_20::TintMethod> mTintMethod;
37 ::ll::TypedStorage<1, 1, bool> mFaceDimming;
38 ::ll::TypedStorage<1, 1, bool> mRandomizeUVRotation;
39 ::ll::TypedStorage<1, 1, bool> mAlphaMaskedTint;
40 ::ll::TypedStorage<1, 1, bool> mDithering;
41 // NOLINTEND
42
43 public:
44 // member functions
45 // NOLINTBEGIN
46 MCNAPI bool operator==(
48 ) const;
49 // NOLINTEND
50 };
51
54 ::SharedTypes::v1_26_20::BlockDefinition::MaterialInstancesComponent::MaterialInstanceConstraint> {
55 public:
56 // virtual functions
57 // NOLINTBEGIN
58 virtual ::cereal::internal::ConstraintDescription doDescription(::cereal::ContextArea) const /*override*/;
59 // NOLINTEND
60
61 public:
62 // virtual function thunks
63 // NOLINTBEGIN
64 MCNAPI ::cereal::internal::ConstraintDescription $doDescription(::cereal::ContextArea) const;
65
66
67 // NOLINTEND
68 };
69
70 using MaterialInstancesDataType = ::std::unordered_map<
71 ::std::string,
72 ::std::variant<
73 ::std::string,
75
76 using MaterialVariant = ::std::
77 variant<::std::string, ::SharedTypes::v1_26_20::BlockDefinition::MaterialInstancesComponent::MaterialInstance>;
78
79public:
80 // member variables
81 // NOLINTBEGIN
82 ::ll::TypedStorage<
83 8,
84 64,
85 ::std::unordered_map<
86 ::std::string,
88 mMaterials;
89 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::string>> mMaterialMappings;
90 // NOLINTEND
91
92public:
93 // prevent constructor by default
94 MaterialInstancesComponent(MaterialInstancesComponent const&);
95 MaterialInstancesComponent();
96
97public:
98 // member functions
99 // NOLINTBEGIN
100 MCNAPI ::SharedTypes::v1_26_20::BlockDefinition::MaterialInstancesComponent&
102
104 // NOLINTEND
105
106public:
107 // static functions
108 // NOLINTBEGIN
110 // NOLINTEND
111
112public:
113 // static variables
114 // NOLINTBEGIN
115 MCNAPI static ::std::string_view const& AlphaMaskedTintId();
116
117 MCNAPI static ::std::string_view const& AmbientOcclusionId();
118
119 MCNAPI static ::std::string_view const& DitheringId();
120
121 MCNAPI static ::std::string_view const& FaceDimmingId();
122
123 MCNAPI static ::std::string_view const& IsotropicId();
124
125 MCNAPI static ::std::string_view const& NameId();
126
127 MCNAPI static ::std::string_view const& RenderMethodId();
128
129 MCNAPI static ::std::string_view const& TextureId();
130
131 MCNAPI static ::std::string_view const& TintMethodId();
132 // NOLINTEND
133
134public:
135 // destructor thunk
136 // NOLINTBEGIN
137 MCNAPI void $dtor();
138 // NOLINTEND
139};
140
141} // namespace SharedTypes::v1_26_20::BlockDefinition
MCAPI::cereal::internal::ConstraintDescription $doDescription(::cereal::ContextArea) const
Definition ConstraintHandle.h:8
MCAPI bool operator==(::SharedTypes::v1_26_20::BlockDefinition::MaterialInstancesComponent::MaterialInstance const &instance) const
static MCAPI void bindType(::cereal::ReflectionCtx &ctx)
static MCAPI ::std::string_view const & FaceDimmingId()
static MCAPI ::std::string_view const & RenderMethodId()
static MCAPI ::std::string_view const & AlphaMaskedTintId()
static MCAPI ::std::string_view const & DitheringId()
MCAPI::SharedTypes::v1_26_20::BlockDefinition::MaterialInstancesComponent & operator=(::SharedTypes::v1_26_20::BlockDefinition::MaterialInstancesComponent const &)
static MCAPI ::std::string_view const & IsotropicId()
static MCAPI ::std::string_view const & TintMethodId()
static MCAPI ::std::string_view const & AmbientOcclusionId()
Definition ReflectionCtx.h:11
Definition ConstraintDescription.h:7
Definition ctx.h:5