Interface IModelBuilder<T extends IModelBuilder<T>>

All Known Implementing Classes:
IModelBuilder.Collecting, IModelBuilder.Simple

public interface IModelBuilder<T extends IModelBuilder<T>>
Base interface for any object that collects culled and unculled faces and bakes them into a model.

Provides a generic base implementation via of(boolean, boolean, boolean, ItemTransforms, ItemOverrides, TextureAtlasSprite, RenderTypeGroup) and a quad-collecting alternative via collecting(List).

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
    static class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addCulledFace(net.minecraft.core.Direction facing, net.minecraft.client.renderer.block.model.BakedQuad quad)
     
    addUnculledFace(net.minecraft.client.renderer.block.model.BakedQuad quad)
     
    net.minecraft.client.resources.model.BakedModel
     
    static IModelBuilder<?>
    collecting(List<net.minecraft.client.renderer.block.model.BakedQuad> quads)
    Creates a new model builder that collects quads to the provided list, returning an empty model if you call build().
    static IModelBuilder<?>
    of(boolean hasAmbientOcclusion, boolean usesBlockLight, boolean isGui3d, net.minecraft.client.renderer.block.model.ItemTransforms transforms, net.minecraft.client.renderer.block.model.ItemOverrides overrides, net.minecraft.client.renderer.texture.TextureAtlasSprite particle, RenderTypeGroup renderTypes)
    Creates a new model builder that uses the provided attributes in the final baked model.
  • Method Details

    • of

      static IModelBuilder<?> of(boolean hasAmbientOcclusion, boolean usesBlockLight, boolean isGui3d, net.minecraft.client.renderer.block.model.ItemTransforms transforms, net.minecraft.client.renderer.block.model.ItemOverrides overrides, net.minecraft.client.renderer.texture.TextureAtlasSprite particle, RenderTypeGroup renderTypes)
      Creates a new model builder that uses the provided attributes in the final baked model.
    • collecting

      static IModelBuilder<?> collecting(List<net.minecraft.client.renderer.block.model.BakedQuad> quads)
      Creates a new model builder that collects quads to the provided list, returning an empty model if you call build().
    • addCulledFace

      T addCulledFace(net.minecraft.core.Direction facing, net.minecraft.client.renderer.block.model.BakedQuad quad)
    • addUnculledFace

      T addUnculledFace(net.minecraft.client.renderer.block.model.BakedQuad quad)
    • build

      net.minecraft.client.resources.model.BakedModel build()