Resource

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

A base resource class for loading OptiFine properties.

Parameters

id

The identifier of the resource

Constructors

Link copied to clipboard
constructor(id: Identifier)

Functions

Link copied to clipboard
abstract fun exists(): Boolean

Returns if the current resource exists.

Properties

Link copied to clipboard
Link copied to clipboard
abstract val properties: Properties

Returns the parsed .properties file.

Link copied to clipboard
abstract val resourcePack: String

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