ModelTexture

@ApiStatus.Internal
class ModelTexture : Record

Represents a raw texture definition from a model file.

This record contains the texture's metadata and its content encoded as a Base64 string.

Since

1.15.2

Parameters

name

the name of the texture file (e.g., "texture.png")

source

the Base64-encoded content of the texture image

width

the width of the texture in pixels

height

the height of the texture in pixels

uvWidth

the UV width of the texture

uvHeight

the UV height of the texture

frameTime

the frame time of the texture

frameInterpolate

the interpolation flag of the texture

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
@NotNull
open fun nameWithoutExtension(): @NotNull String
Returns the texture name without its file extension.
Link copied to clipboard
@NotNull
open fun toBlueprint(@NotNull context: @NotNull ModelLoadContext): @NotNull BlueprintTexture
Converts this raw texture into a processed BlueprintTexture.
Link copied to clipboard
abstract fun toString(): String