Resource
representation of a resource, which can be loaded asynchronously or synchronously.
For the definition of a resource, see getResourceStream.
Since
1.1.6
See also
Inheritors
Constructors
Functions
load the given resource synchronously into a new byte array. you may then perform any operations on the result.
load the given resource synchronously, mapping to definitely non-nullable type T. you may then perform any operations on the result.
Use this method to execute any callbacks that were added before the resource was initialized.
Set the class that will be used to load this resource. This is useful if you want to load resources from a different classloader or package. Note that you can only set this once, and all subsequent calls will be ignored.
return the stream of this resource. it is the caller's responsibility to close the stream.