Interface IUnbakedGeometry<T extends IUnbakedGeometry<T>>
- All Known Implementing Classes:
EmptyModel,FullbrightModel,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 TypeMethodDescriptionnet.minecraft.client.resources.model.BakedModelbake(IGeometryBakingContext context, net.minecraft.client.resources.model.ModelBakery bakery, Function<net.minecraft.client.resources.model.Material, net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter, net.minecraft.client.resources.model.ModelState modelState, net.minecraft.client.renderer.block.model.ItemOverrides overrides, net.minecraft.resources.ResourceLocation modelLocation) Returns a set of all the components whose visibility may be configured viaIGeometryBakingContext.Collection<net.minecraft.client.resources.model.Material>getMaterials(IGeometryBakingContext context, Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.resources.model.UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors)
-
Method Details
-
bake
net.minecraft.client.resources.model.BakedModel bake(IGeometryBakingContext context, net.minecraft.client.resources.model.ModelBakery bakery, Function<net.minecraft.client.resources.model.Material, net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter, net.minecraft.client.resources.model.ModelState modelState, net.minecraft.client.renderer.block.model.ItemOverrides overrides, net.minecraft.resources.ResourceLocation modelLocation) -
getMaterials
Collection<net.minecraft.client.resources.model.Material> getMaterials(IGeometryBakingContext context, Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.resources.model.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
-