Class CompositeUnbakedGeometry
java.lang.Object
net.neoforged.neoforge.client.model.CompositeUnbakedGeometry
- All Implemented Interfaces:
net.minecraft.client.resources.model.UnbakedGeometry
,UnbakedGeometryExtension
,ExtendedUnbakedGeometry
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final com.google.common.collect.ImmutableMap
<String, com.mojang.datafixers.util.Either<net.minecraft.resources.ResourceLocation, net.minecraft.client.resources.model.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<net.minecraft.resources.ResourceLocation, net.minecraft.client.resources.model.UnbakedModel>> children) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.resources.model.QuadCollection
bake
(net.minecraft.client.renderer.block.model.TextureSlots textureSlots, net.minecraft.client.resources.model.ModelBaker baker, net.minecraft.client.resources.model.ModelState state, net.minecraft.client.resources.model.ModelDebugName debugName, net.minecraft.util.context.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<net.minecraft.resources.ResourceLocation, childrennet.minecraft.client.resources.model.UnbakedModel>>
-
-
Constructor Details
-
CompositeUnbakedGeometry
public CompositeUnbakedGeometry(com.google.common.collect.ImmutableMap<String, com.mojang.datafixers.util.Either<net.minecraft.resources.ResourceLocation, net.minecraft.client.resources.model.UnbakedModel>> children)
-
-
Method Details
-
bake
public net.minecraft.client.resources.model.QuadCollection bake(net.minecraft.client.renderer.block.model.TextureSlots textureSlots, net.minecraft.client.resources.model.ModelBaker baker, net.minecraft.client.resources.model.ModelState state, net.minecraft.client.resources.model.ModelDebugName debugName, net.minecraft.util.context.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
-