IResourceReader

Represents a readable Minecraft resource.

Functions

Link copied to clipboard
@NotNull
abstract fun getInputStream(): @NotNull InputStream
Returns the input stream the resource can be read from.

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