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(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.BakedModelbuild()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 callbuild().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
Creates a new model builder that collects quads to the provided list, returning an empty model if you callbuild(). -
addCulledFace
T addCulledFace(net.minecraft.core.Direction facing, net.minecraft.client.renderer.block.model.BakedQuad quad) -
addUnculledFace
-
build
net.minecraft.client.resources.model.BakedModel build()
-