BlueprintUV

Represents a processed face UV mapping blueprint ready for Minecraft model JSON serialization.

Since

3.7.0

Parameters

faceId

the directional face identifier (e.g., "north", "up")

uv

the raw UV bounds represented as Float4

rotation

the rotation angle in degrees (0, 90, 180, 270)

texture

the resolved index of the texture referenced by this face

Constructors

Link copied to clipboard
constructor()

Companion properties

Link copied to clipboard
val DOWN: String = "down"
The identifier string for the down (bottom) face.
Link copied to clipboard
val EAST: String = "east"
The identifier string for the east face.
Link copied to clipboard
val NORTH: String = "north"
The identifier string for the north face.
Link copied to clipboard
val SOUTH: String = "south"
The identifier string for the south face.
Link copied to clipboard
val UP: String = "up"
The identifier string for the up (top) face.
Link copied to clipboard
val WEST: String = "west"
The identifier string for the west face.

Companion functions

Link copied to clipboard
@Nullable
open fun toJson(@NotNull uvs: @NotNull List<BlueprintUV>, @NotNull function: @NotNull (BlueprintUV) -> ModelResolution): @Nullable JsonObject
Serializes a list of BlueprintUV instances into a combined JSON object representing the "faces" section of a Minecraft element JSON.

Functions

Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
@Nullable
open fun toJson(@NotNull resolution: @NotNull ModelResolution): @Nullable JsonObject
Serializes this UV mapping into a Minecraft model face JsonObject.
Link copied to clipboard
abstract fun toString(): String