Resource

public abstract class Resource(source)

A base resource class for loading OptiFine properties.

Parameters

id

The identifier of the resource

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
public abstract Boolean exists()

Returns if the current resource exists.

Link copied to clipboard
public final Identifier getId()
Link copied to clipboard
public abstract Properties getProperties()

Returns the parsed .properties file.

Link copied to clipboard
public abstract String getResourcePack()

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

Properties

Link copied to clipboard
private final Identifier id
Link copied to clipboard
private final Properties properties

Returns the parsed .properties file.

Link copied to clipboard
private final String resourcePack

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