Class UnbakedElementsHelper
java.lang.Object
net.neoforged.neoforge.client.model.UnbakedElementsHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbakeElements(ModelBaker baker, List<BlockElement> elements, Function<String, Material.Baked> materialGetter, ModelState modelState) Bakes a list of block elements and returns the list of baked quads.static voidbakeElements(ModelBaker baker, QuadCollection.Builder builder, List<BlockElement> elements, Function<String, Material.Baked> materialGetter, ModelState modelState) Bakes a list of block elements and feeds the baked quads to a quad collection builder.bakeItemMaskQuads(ModelBaker baker, int layerIndex, Material.Baked maskMaterial, Material.Baked outputMaterial, ModelState modelState) bakeItemMaskQuads(ModelBaker baker, int layerIndex, Material.Baked maskMaterial, Material.Baked outputMaterial, ModelState modelState, ExtraFaceData faceData) Bakes quads in the shape of the specified mask texture with the specified output texture applied to them.static ModelStatecomposeRootTransformIntoModelState(ModelState modelState, Transformation rootTransform) Returns aModelStatethat combines the existing model state and the root transform.
-
Constructor Details
-
UnbakedElementsHelper
private UnbakedElementsHelper()
-
-
Method Details
-
bakeItemMaskQuads
public static List<BakedQuad> bakeItemMaskQuads(ModelBaker baker, int layerIndex, Material.Baked maskMaterial, Material.Baked outputMaterial, ModelState modelState) - See Also:
-
bakeItemMaskQuads
public static List<BakedQuad> bakeItemMaskQuads(ModelBaker baker, int layerIndex, Material.Baked maskMaterial, Material.Baked outputMaterial, ModelState modelState, ExtraFaceData faceData) Bakes quads in the shape of the specified mask texture with the specified output texture applied to them.The
Direction.NORTHandDirection.SOUTHfaces take up only the pixels the mask texture uses. -
bakeElements
public static void bakeElements(ModelBaker baker, QuadCollection.Builder builder, List<BlockElement> elements, Function<String, Material.Baked> materialGetter, ModelState modelState) Bakes a list of block elements and feeds the baked quads to a quad collection builder. -
bakeElements
public static List<BakedQuad> bakeElements(ModelBaker baker, List<BlockElement> elements, Function<String, Material.Baked> materialGetter, ModelState modelState) Bakes a list of block elements and returns the list of baked quads. -
composeRootTransformIntoModelState
public static ModelState composeRootTransformIntoModelState(ModelState modelState, Transformation rootTransform) Returns aModelStatethat combines the existing model state and the root transform.- Returns:
- a
ModelStatethat combines the existing model state and the root transform
-