IResource

interface IResource(source)

A wrapper interface for Minecraft's Resource class.

Inheritors

Functions

Link copied to clipboard
abstract fun exists(): Boolean
Returns whether the given resource exists.
Link copied to clipboard
@NotNull
abstract fun getId(): @NotNull Identifier
Returns the ID of the given resource.
Link copied to clipboard
@NotNull
abstract fun getResourcePack(): @NotNull IResourcePack
Returns the resource pack the given resource is loaded from.