Class CompositeUnbakedGeometry
java.lang.Object
net.neoforged.neoforge.client.model.CompositeUnbakedGeometry
- All Implemented Interfaces:
UnbakedGeometry
,UnbakedGeometryExtension
,ExtendedUnbakedGeometry
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final com.google.common.collect.ImmutableMap
<String, com.mojang.datafixers.util.Either<ResourceLocation, UnbakedModel>> Fields inherited from interface net.minecraft.client.resources.model.UnbakedGeometry
EMPTY
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeUnbakedGeometry
(com.google.common.collect.ImmutableMap<String, com.mojang.datafixers.util.Either<ResourceLocation, UnbakedModel>> children) -
Method Summary
Modifier and TypeMethodDescriptionbake
(TextureSlots textureSlots, ModelBaker baker, ModelState state, ModelDebugName debugName, ContextMap additionalProperties) Version ofUnbakedGeometry.bake(TextureSlots, ModelBaker, ModelState, ModelDebugName)
that also receives additional properties sourced fromUnbakedModelExtension.fillAdditionalProperties(net.minecraft.util.context.ContextMap.Builder)
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.client.model.ExtendedUnbakedGeometry
bake
-
Field Details
-
children
final com.google.common.collect.ImmutableMap<String,com.mojang.datafixers.util.Either<ResourceLocation, childrenUnbakedModel>>
-
-
Constructor Details
-
CompositeUnbakedGeometry
public CompositeUnbakedGeometry(com.google.common.collect.ImmutableMap<String, com.mojang.datafixers.util.Either<ResourceLocation, UnbakedModel>> children)
-
-
Method Details
-
bake
public QuadCollection bake(TextureSlots textureSlots, ModelBaker baker, ModelState state, ModelDebugName debugName, ContextMap additionalProperties) Description copied from interface:UnbakedGeometryExtension
Version ofUnbakedGeometry.bake(TextureSlots, ModelBaker, ModelState, ModelDebugName)
that also receives additional properties sourced fromUnbakedModelExtension.fillAdditionalProperties(net.minecraft.util.context.ContextMap.Builder)
.- Specified by:
bake
in interfaceExtendedUnbakedGeometry
- Specified by:
bake
in interfaceUnbakedGeometryExtension
-