Resource

public abstract class Resource(source)

A base class for resources.

Parameters

id

The identifier of the resource

Inheritors

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 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 String resourcePack

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