Interface IUnbakedGeometry<T extends IUnbakedGeometry<T>>
- All Known Implementing Classes:
CompositeModel,DynamicFluidContainerModel,ElementsModel,EmptyModel,FullPotsAccessorDemo.ClientHandler.DioritePotModelGeometry,ItemLayerModel,NewModelLoaderTest.TestModel,ObjModel,SeparateTransformsModel,SimpleUnbakedGeometry
public interface IUnbakedGeometry<T extends IUnbakedGeometry<T>>
General interface for any model that can be baked, superset of vanilla
UnbakedModel.
Instances of this class ar usually created via IGeometryLoader.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbake(IGeometryBakingContext context, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) Returns a set of all the components whose visibility may be configured viaIGeometryBakingContext.getMaterials(IGeometryBakingContext context, Function<ResourceLocation, UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors)
-
Method Details
-
bake
BakedModel bake(IGeometryBakingContext context, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) -
getMaterials
Collection<Material> getMaterials(IGeometryBakingContext context, Function<ResourceLocation, UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) -
getConfigurableComponentNames
Returns a set of all the components whose visibility may be configured viaIGeometryBakingContext.- Returns:
- a set of all the components whose visibility may be configured via
IGeometryBakingContext
-