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 vanillaIUnbakedModel
. Models can be baked to different vertex formats and with different state.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IBakedModel
bake(IModelConfiguration owner, ModelBakery bakery, java.util.function.Function<RenderMaterial,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ItemOverrideList overrides, ResourceLocation modelLocation)
default java.util.Optional<? extends IModelGeometryPart>
getPart(java.lang.String name)
default java.util.Collection<? extends IModelGeometryPart>
getParts()
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)
-
-
-
Method Detail
-
getParts
default java.util.Collection<? extends IModelGeometryPart> getParts()
-
getPart
default java.util.Optional<? extends IModelGeometryPart> getPart(java.lang.String name)
-
bake
IBakedModel bake(IModelConfiguration owner, ModelBakery bakery, java.util.function.Function<RenderMaterial,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ItemOverrideList overrides, ResourceLocation modelLocation)
-
getTextures
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)
-
-