public static class CompositeModel.Geometry extends java.lang.Object implements IMultipartModelGeometry<CompositeModel.Geometry>
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableMap<java.lang.String,CompositeModel.Submodel> |
parts |
Constructor and Description |
---|
Geometry(com.google.common.collect.ImmutableMap<java.lang.String,CompositeModel.Submodel> parts) |
Modifier and Type | Method and Description |
---|---|
IBakedModel |
bake(IModelConfiguration owner,
ModelBakery bakery,
java.util.function.Function<Material,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<Material> |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addQuads
private final com.google.common.collect.ImmutableMap<java.lang.String,CompositeModel.Submodel> parts
Geometry(com.google.common.collect.ImmutableMap<java.lang.String,CompositeModel.Submodel> parts)
public java.util.Collection<? extends IModelGeometryPart> getParts()
getParts
in interface IModelGeometry<CompositeModel.Geometry>
getParts
in interface IMultipartModelGeometry<CompositeModel.Geometry>
public java.util.Optional<? extends IModelGeometryPart> getPart(java.lang.String name)
getPart
in interface IModelGeometry<CompositeModel.Geometry>
getPart
in interface IMultipartModelGeometry<CompositeModel.Geometry>
public IBakedModel bake(IModelConfiguration owner, ModelBakery bakery, java.util.function.Function<Material,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ItemOverrideList overrides, ResourceLocation modelLocation)
bake
in interface IModelGeometry<CompositeModel.Geometry>
bake
in interface ISimpleModelGeometry<CompositeModel.Geometry>
public java.util.Collection<Material> 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)
getTextures
in interface IModelGeometry<CompositeModel.Geometry>
getTextures
in interface IMultipartModelGeometry<CompositeModel.Geometry>
getTextures
in interface ISimpleModelGeometry<CompositeModel.Geometry>