LiLaC API
1.0.0-beta.2-api
jvm
LiLaC API
/
opekope2.lilac.api.resource
/
IResourceReader
IResource
Reader
interface
IResourceReader
:
IResource
(
source
)
Represents a readable Minecraft resource.
Members
Functions
get
Input
Stream
Link copied to clipboard
@
NotNull
abstract
fun
getInputStream
(
)
:
@
NotNull
InputStream
Returns the input stream the resource can be read from.
Inherited functions
exists
Link copied to clipboard
abstract
fun
exists
(
)
:
Boolean
Returns whether the given resource exists.
get
Id
Link copied to clipboard
@
NotNull
abstract
fun
getId
(
)
:
@
NotNull
Identifier
Returns the ID of the given resource.
get
Resource
Pack
Link copied to clipboard
@
NotNull
abstract
fun
getResourcePack
(
)
:
@
NotNull
IResourcePack
Returns the resource pack the given resource is loaded from.