Package net.minecraftforge.client.model
Class CompositeModel.Submodel
- java.lang.Object
-
- net.minecraftforge.client.model.CompositeModel.Submodel
-
- All Implemented Interfaces:
IModelGeometryPart
- Enclosing class:
- CompositeModel
private static class CompositeModel.Submodel extends java.lang.Object implements IModelGeometryPart
-
-
Field Summary
Fields Modifier and Type Field Description private BlockModel
model
private IModelTransform
modelTransform
private java.lang.String
name
-
Constructor Summary
Constructors Modifier Constructor Description private
Submodel(java.lang.String name, BlockModel model, IModelTransform modelTransform)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addQuads(IModelConfiguration owner, IModelBuilder<?> modelBuilder, ModelBakery bakery, java.util.function.Function<RenderMaterial,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ResourceLocation modelLocation)
IBakedModel
bakeModel(ModelBakery bakery, java.util.function.Function<RenderMaterial,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ResourceLocation modelLocation)
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)
java.lang.String
name()
-
-
-
Field Detail
-
name
private final java.lang.String name
-
model
private final BlockModel model
-
modelTransform
private final IModelTransform modelTransform
-
-
Constructor Detail
-
Submodel
private Submodel(java.lang.String name, BlockModel model, IModelTransform modelTransform)
-
-
Method Detail
-
name
public java.lang.String name()
- Specified by:
name
in interfaceIModelGeometryPart
-
addQuads
public void addQuads(IModelConfiguration owner, IModelBuilder<?> modelBuilder, ModelBakery bakery, java.util.function.Function<RenderMaterial,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ResourceLocation modelLocation)
- Specified by:
addQuads
in interfaceIModelGeometryPart
-
bakeModel
public IBakedModel bakeModel(ModelBakery bakery, java.util.function.Function<RenderMaterial,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ResourceLocation modelLocation)
-
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 interfaceIModelGeometryPart
-
-