Package net.minecraftforge.client.model
Class CompositeModel.Geometry
java.lang.Object
net.minecraftforge.client.model.CompositeModel.Geometry
- All Implemented Interfaces:
IModelGeometry<CompositeModel.Geometry>
,IMultipartModelGeometry<CompositeModel.Geometry>
,ISimpleModelGeometry<CompositeModel.Geometry>
- Enclosing class:
- CompositeModel
public static class CompositeModel.Geometry
extends Object
implements IMultipartModelGeometry<CompositeModel.Geometry>
-
Field Summary
Modifier and TypeFieldDescriptionprivate com.google.common.collect.ImmutableMap<String,CompositeModel.Submodel>
-
Constructor Summary
ConstructorDescriptionGeometry(com.google.common.collect.ImmutableMap<String,CompositeModel.Submodel> parts)
-
Method Summary
Modifier and TypeMethodDescriptionbake(IModelConfiguration owner, ModelBakery bakery, Function<Material,TextureAtlasSprite> spriteGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation)
Optional<? extends IModelGeometryPart>
Collection<? extends IModelGeometryPart>
getParts()
getTextures(IModelConfiguration owner, Function<ResourceLocation,UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String,String>> missingTextureErrors)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.client.model.geometry.IMultipartModelGeometry
addQuads
-
Field Details
-
parts
-
-
Constructor Details
-
Geometry
Geometry(com.google.common.collect.ImmutableMap<String,CompositeModel.Submodel> parts)
-
-
Method Details
-
getParts
- Specified by:
getParts
in interfaceIModelGeometry<CompositeModel.Geometry>
- Specified by:
getParts
in interfaceIMultipartModelGeometry<CompositeModel.Geometry>
-
getPart
- Specified by:
getPart
in interfaceIModelGeometry<CompositeModel.Geometry>
- Specified by:
getPart
in interfaceIMultipartModelGeometry<CompositeModel.Geometry>
-
bake
public BakedModel bake(IModelConfiguration owner, ModelBakery bakery, Function<Material,TextureAtlasSprite> spriteGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation)- Specified by:
bake
in interfaceIModelGeometry<CompositeModel.Geometry>
- Specified by:
bake
in interfaceISimpleModelGeometry<CompositeModel.Geometry>
-
getTextures
public Collection<Material> getTextures(IModelConfiguration owner, Function<ResourceLocation,UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String,String>> missingTextureErrors)- Specified by:
getTextures
in interfaceIModelGeometry<CompositeModel.Geometry>
- Specified by:
getTextures
in interfaceIMultipartModelGeometry<CompositeModel.Geometry>
- Specified by:
getTextures
in interfaceISimpleModelGeometry<CompositeModel.Geometry>
-