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 ClassesModifier and TypeInterfaceDescriptionstatic 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 TypeMethodDescriptionaddCulledFace
(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.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.build()
Deprecated, for removal: This API element is subject to removal in a future version.Builds the model from the collected faces.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 callbuild()
.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
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 callbuild()
. -
addCulledFace
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 facingquad
- The quad- Returns:
- This builder
-
addUnculledFace
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
-
SimpleBakedModel.Builder
instead.