ResourceReader

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

A base class for reading resources.

Parameters

id

The identifier of the resource

Constructors

Link copied to clipboard
constructor(id: Identifier)

Properties

Link copied to clipboard
abstract val inputStream: InputStream

Returns the input steam of the resource.

Inherited 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.

Inherited functions

Link copied to clipboard
abstract fun exists(): Boolean

Returns if the current resource exists.