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 Type
    Method
    Description
    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)
     
    default Set<String>
    Returns a set of all the components whose visibility may be configured via IGeometryBakingContext.
    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

      default Set<String> getConfigurableComponentNames()
      Returns a set of all the components whose visibility may be configured via IGeometryBakingContext.
      Returns:
      a set of all the components whose visibility may be configured via IGeometryBakingContext