BlueprintTexture

Represents a processed texture in a model blueprint.

This record holds the texture's name, binary image data, dimensions, and rendering properties.

Since

1.15.2

Parameters

name

the internal name of the texture

image

the binary content of the texture image

width

the original width of the texture in pixels

height

the original height of the texture in pixels

uvWidth

the UV width of the texture, if specified

uvHeight

the UV height of the texture, if specified

canBeRendered

whether this texture should be included in the resource pack

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
open fun hasUVSize(): Boolean
Checks if this texture has a specific UV size defined.
Link copied to clipboard
Checks if this texture is an animated texture (a texture atlas for animation).
Link copied to clipboard
@NotNull
open fun packName(@NotNull obfuscator: @NotNull PackObfuscator): @NotNull String
Generates the pack-compliant file name for this texture.
Link copied to clipboard
@NotNull
open fun packNamespace(@NotNull obfuscator: @NotNull PackObfuscator): @NotNull String
Generates the full resource pack namespace path for this texture.
Link copied to clipboard
@NotNull
open fun resolution(@NotNull resolution: @NotNull ModelResolution): @NotNull ModelResolution
Returns the effective resolution for this texture's UV mapping.
Link copied to clipboard
@NotNull
open fun toMcmeta(): @NotNull JsonObject
Generates the .mcmeta file content for this texture if it is animated.
Link copied to clipboard
abstract fun toString(): String