Package net.minecraftforge.client.model
Class CompositeModel.Submodel
java.lang.Object
net.minecraftforge.client.model.CompositeModel.Submodel
- All Implemented Interfaces:
IModelGeometryPart
- Enclosing class:
- CompositeModel
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BlockModel
private final IModelTransform
private final String
-
Constructor Summary
ModifierConstructorDescriptionprivate
Submodel
(String name, BlockModel model, IModelTransform modelTransform) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addQuads
(IModelConfiguration owner, IModelBuilder<?> modelBuilder, ModelBakery bakery, Function<RenderMaterial, TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ResourceLocation modelLocation) bakeModel
(ModelBakery bakery, Function<RenderMaterial, TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ResourceLocation modelLocation) getTextures
(IModelConfiguration owner, Function<ResourceLocation, IUnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) name()
-
Field Details
-
name
-
model
-
modelTransform
-
-
Constructor Details
-
Submodel
-
-
Method Details
-
name
- Specified by:
name
in interfaceIModelGeometryPart
-
addQuads
public void addQuads(IModelConfiguration owner, IModelBuilder<?> modelBuilder, ModelBakery bakery, Function<RenderMaterial, TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ResourceLocation modelLocation) - Specified by:
addQuads
in interfaceIModelGeometryPart
-
bakeModel
public IBakedModel bakeModel(ModelBakery bakery, Function<RenderMaterial, TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ResourceLocation modelLocation) -
getTextures
public Collection<RenderMaterial> getTextures(IModelConfiguration owner, Function<ResourceLocation, IUnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) - Specified by:
getTextures
in interfaceIModelGeometryPart
-