Interface IModelGeometry<T extends IModelGeometry<T>>
- All Known Subinterfaces:
IMultipartModelGeometry<T>,ISimpleModelGeometry<T>
- All Known Implementing Classes:
CompositeModel.Geometry,DynamicBucketModel,FluidModel,FullPotsAccessorDemo.ClientHandler.DioritePotModelGeometry,ItemLayerModel,ModelLoaderRegistry.VanillaProxy,MultiLayerModel,NewModelLoaderTest.TestModel,OBJModel,SeparatePerspectiveModel
public interface IModelGeometry<T extends IModelGeometry<T>>
General interface for any model that can be baked, superset of vanilla
UnbakedModel.
Models can be baked to different vertex formats and with different state.-
Method Summary
Modifier and TypeMethodDescriptionbake(IModelConfiguration owner, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation) default Optional<? extends IModelGeometryPart>default Collection<? extends IModelGeometryPart>getParts()getTextures(IModelConfiguration owner, Function<ResourceLocation, UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors)
-
Method Details
-
getParts
-
getPart
-
bake
BakedModel bake(IModelConfiguration owner, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation) -
getTextures
Collection<Material> getTextures(IModelConfiguration owner, Function<ResourceLocation, UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors)
-