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, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides) Returns a set of all the components whose visibility may be configured viaIGeometryBakingContext
.default void
resolveParents
(Function<ResourceLocation, UnbakedModel> modelGetter, IGeometryBakingContext context) Resolve parents of nestedBlockModel
s which are later used inbake(IGeometryBakingContext, ModelBaker, Function, ModelState, ItemOverrides)
viaBlockModel.resolveParents(Function)
-
Method Details
-
bake
BakedModel bake(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides) -
resolveParents
default void resolveParents(Function<ResourceLocation, UnbakedModel> modelGetter, IGeometryBakingContext context) Resolve parents of nestedBlockModel
s which are later used inbake(IGeometryBakingContext, ModelBaker, Function, ModelState, ItemOverrides)
viaBlockModel.resolveParents(Function)
-
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
-