ModelFace

@ApiStatus.Internal
class ModelFace : Record

Represents the UV mappings for all six faces of a cube element.

Since

1.15.2

Parameters

north

the UV mapping for the north face

east

the UV mapping for the east face

south

the UV mapping for the south face

west

the UV mapping for the west face

up

the UV mapping for the up face

down

the UV mapping for the down face

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
open fun hasTexture(): Boolean
Checks if any face has a texture defined.
Link copied to clipboard
@NotNull
open fun textureIndex(): @NotNull IntStream
Link copied to clipboard
@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.
Link copied to clipboard
abstract fun toString(): String