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 ClassesModifier and TypeInterfaceDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionaddCulledFace(Direction facing, BakedQuad quad) addUnculledFace(BakedQuad quad) build()static IModelBuilder<?> collecting(List<BakedQuad> quads) 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, ItemOverrides overrides, 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, ItemTransforms transforms, ItemOverrides overrides, TextureAtlasSprite particle, RenderTypeGroup renderTypes) Creates a new model builder that uses the provided attributes in the final baked model. -
collecting
Creates a new model builder that collects quads to the provided list, returning an empty model if you callbuild(). -
addCulledFace
-
addUnculledFace
-
build
BakedModel build()
-