BlueprintImage

Represents an image file to be generated as part of the resource pack.

This record holds the image's name, its binary content, and an optional .mcmeta file for animations.

Since

1.15.2

Parameters

name

the name of the image file (including extension)

image

the binary content of the image

mcmeta

the JSON object for the .mcmeta file, if any

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
open fun estimatedSize(): Long
Returns the estimated size of the image in bytes.
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
@NotNull
open fun mcmetaName(): @NotNull String
Returns the name of the metadata file associated with the png.
Link copied to clipboard
@NotNull
open fun pngName(): @NotNull String
Returns the name of the image file with a .png extension.
Link copied to clipboard
abstract fun toString(): String