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
IUnbakedModel
.
Models can be baked to different vertex formats and with different state.-
Method Summary
Modifier and TypeMethodDescriptionbake
(IModelConfiguration owner, ModelBakery bakery, Function<RenderMaterial, TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ItemOverrideList overrides, ResourceLocation modelLocation) default Optional<? extends IModelGeometryPart>
default Collection<? extends IModelGeometryPart>
getParts()
getTextures
(IModelConfiguration owner, Function<ResourceLocation, IUnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors)
-
Method Details
-
getParts
-
getPart
-
bake
IBakedModel bake(IModelConfiguration owner, ModelBakery bakery, Function<RenderMaterial, TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ItemOverrideList overrides, ResourceLocation modelLocation) -
getTextures
Collection<RenderMaterial> getTextures(IModelConfiguration owner, Function<ResourceLocation, IUnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors)
-