Resource

abstract class Resource(val id: Identifier)(source)

A base class for resources.

Parameters

id

The identifier of the resource

Inheritors

Constructors

Link copied to clipboard
constructor(id: Identifier)

Properties

Link copied to clipboard
Link copied to clipboard
abstract val resourcePack: String

Returns the name of the resource pack the current resource is loaded from.

Functions

Link copied to clipboard
abstract fun exists(): Boolean

Returns if the current resource exists.