toJson

@NotNull
open fun toJson(@NotNull parent: @NotNull BlueprintLoadContext, tint: Int): @NotNull JsonObject

Converts the face UV data to a JSON object for the Minecraft model file.

Only faces with a defined texture will be included in the output.

Return

the generated JSON object

Since

1.15.2

Parameters

parent

the parent model blueprint, used for texture resolution

tint

the tint index to apply