ResourcePackElement

Represents something inside of a resource pack which can be validated and saved.

Inheritors

Functions

Link copied to clipboard
abstract fun save(pack: ResourcePack)

Saves this element to a resource pack.

Link copied to clipboard
open fun validate(pack: ResourcePack): Result<Unit>

Validates this element and returns a Result of type Unit, with an optional exception extending ResourcePackValidationException. This API will probably be improved in the future.