Interface IModelBuilder<T extends IModelBuilder<T>>

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

@Deprecated(forRemoval=true, since="1.21.4") public interface IModelBuilder<T extends IModelBuilder<T>>
Deprecated, for removal: This API element is subject to removal in a future version.
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, TextureAtlasSprite, RenderTypeGroup) and a quad-collecting alternative via collecting(List).

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Adds a face to the model that will be culled based on the provided facing.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Adds a face to the model that will not be culled.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Builds the model from the collected faces.
    static IModelBuilder<?>
    Deprecated, for removal: This API element is subject to removal in a future version.
    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, ItemTransforms transforms, TextureAtlasSprite particle, RenderTypeGroup renderTypes)
    Deprecated, for removal: This API element is subject to removal in a future version.
    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, ItemTransforms transforms, TextureAtlasSprite particle, RenderTypeGroup renderTypes)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new model builder that uses the provided attributes in the final baked model.
    • collecting

      static IModelBuilder<?> collecting(List<BakedQuad> quads)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new model builder that collects quads to the provided list, returning an empty model if you call build().
    • addCulledFace

      T addCulledFace(Direction facing, BakedQuad quad)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Adds a face to the model that will be culled based on the provided facing.
      Parameters:
      facing - The facing
      quad - The quad
      Returns:
      This builder
    • addUnculledFace

      T addUnculledFace(BakedQuad quad)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Adds a face to the model that will not be culled.
      Parameters:
      quad - The quad
      Returns:
      This builder
    • build

      BakedModel build()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Builds the model from the collected faces.
      Returns:
      The baked model