BlueprintJson

Represents a JSON file to be generated as part of the resource pack.

This record holds the file name and a supplier for the JSON content.

Since

1.15.2

Parameters

name

the name of the JSON file (without extension)

element

a supplier that provides the JSON content

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
@NotNull
open fun buildJson(): @NotNull JsonElement
Builds and returns the JSON content by invoking the supplier.
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 jsonName(): @NotNull String
Returns the name of the JSON file with a .json extension.
Link copied to clipboard
abstract fun toString(): String