private static class CompositeModel.Submodel extends java.lang.Object implements IModelGeometryPart
Modifier and Type | Field and Description |
---|---|
private BlockModel |
model |
private IModelTransform |
modelTransform |
private java.lang.String |
name |
Modifier | Constructor and Description |
---|---|
private |
Submodel(java.lang.String name,
BlockModel model,
IModelTransform modelTransform) |
Modifier and Type | Method and Description |
---|---|
void |
addQuads(IModelConfiguration owner,
IModelBuilder<?> modelBuilder,
ModelBakery bakery,
java.util.function.Function<Material,TextureAtlasSprite> spriteGetter,
IModelTransform modelTransform,
ResourceLocation modelLocation) |
IBakedModel |
bakeModel(ModelBakery bakery,
java.util.function.Function<Material,TextureAtlasSprite> spriteGetter,
IModelTransform modelTransform,
ResourceLocation modelLocation) |
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) |
java.lang.String |
name() |
private final java.lang.String name
private final BlockModel model
private final IModelTransform modelTransform
private Submodel(java.lang.String name, BlockModel model, IModelTransform modelTransform)
public java.lang.String name()
name
in interface IModelGeometryPart
public void addQuads(IModelConfiguration owner, IModelBuilder<?> modelBuilder, ModelBakery bakery, java.util.function.Function<Material,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ResourceLocation modelLocation)
addQuads
in interface IModelGeometryPart
public IBakedModel bakeModel(ModelBakery bakery, java.util.function.Function<Material,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ResourceLocation modelLocation)
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 IModelGeometryPart