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 java.lang.Object implements IMultipartModelGeometry<CompositeModel.Geometry>
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.ImmutableMap<java.lang.String,CompositeModel.Submodel>
parts
-
Constructor Summary
Constructors Constructor Description Geometry(com.google.common.collect.ImmutableMap<java.lang.String,CompositeModel.Submodel> parts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IBakedModel
bake(IModelConfiguration owner, ModelBakery bakery, java.util.function.Function<RenderMaterial,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ItemOverrideList overrides, ResourceLocation modelLocation)
java.util.Optional<? extends IModelGeometryPart>
getPart(java.lang.String name)
java.util.Collection<? extends IModelGeometryPart>
getParts()
java.util.Collection<RenderMaterial>
getTextures(IModelConfiguration owner, java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.Set<com.mojang.datafixers.util.Pair<java.lang.String,java.lang.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 Detail
-
parts
private final com.google.common.collect.ImmutableMap<java.lang.String,CompositeModel.Submodel> parts
-
-
Constructor Detail
-
Geometry
Geometry(com.google.common.collect.ImmutableMap<java.lang.String,CompositeModel.Submodel> parts)
-
-
Method Detail
-
getParts
public java.util.Collection<? extends IModelGeometryPart> getParts()
- Specified by:
getParts
in interfaceIModelGeometry<CompositeModel.Geometry>
- Specified by:
getParts
in interfaceIMultipartModelGeometry<CompositeModel.Geometry>
-
getPart
public java.util.Optional<? extends IModelGeometryPart> getPart(java.lang.String name)
- Specified by:
getPart
in interfaceIModelGeometry<CompositeModel.Geometry>
- Specified by:
getPart
in interfaceIMultipartModelGeometry<CompositeModel.Geometry>
-
bake
public IBakedModel bake(IModelConfiguration owner, ModelBakery bakery, java.util.function.Function<RenderMaterial,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ItemOverrideList overrides, ResourceLocation modelLocation)
- Specified by:
bake
in interfaceIModelGeometry<CompositeModel.Geometry>
- Specified by:
bake
in interfaceISimpleModelGeometry<CompositeModel.Geometry>
-
getTextures
public java.util.Collection<RenderMaterial> getTextures(IModelConfiguration owner, java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.Set<com.mojang.datafixers.util.Pair<java.lang.String,java.lang.String>> missingTextureErrors)
- Specified by:
getTextures
in interfaceIModelGeometry<CompositeModel.Geometry>
- Specified by:
getTextures
in interfaceIMultipartModelGeometry<CompositeModel.Geometry>
- Specified by:
getTextures
in interfaceISimpleModelGeometry<CompositeModel.Geometry>
-
-