2019-06-28 17:55:20 -04:00
|
|
|
CLASS net/minecraft/class_3298 net/minecraft/resource/Resource
|
2021-04-02 17:05:30 -04:00
|
|
|
COMMENT A resource of binary data.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>The resource must be closed before disposal to avoid resource leaks.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see ResourceFactory#getResource(Identifier)
|
|
|
|
COMMENT @see ResourceManager#getAllResources(Identifier)
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_14480 getResourcePackName ()Ljava/lang/String;
|
2021-04-02 17:05:30 -04:00
|
|
|
COMMENT Returns the user-friendly name of the pack this resource is from.
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_14481 getMetadata (Lnet/minecraft/class_3270;)Ljava/lang/Object;
|
2021-04-02 17:05:30 -04:00
|
|
|
COMMENT Returns a metadata of this resource by the {@code metaReader}, or {@code null}
|
|
|
|
COMMENT if no such metadata exists.
|
2019-05-07 11:56:34 -04:00
|
|
|
ARG 1 metaReader
|
2021-04-02 17:05:30 -04:00
|
|
|
COMMENT the metadata reader
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_14482 getInputStream ()Ljava/io/InputStream;
|
2021-04-02 17:05:30 -04:00
|
|
|
COMMENT Returns the input stream of this resource.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>This input stream is closed when this resource is closed.
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_14483 getId ()Lnet/minecraft/class_2960;
|
2021-04-02 17:05:30 -04:00
|
|
|
COMMENT Returns the location of this resource.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>Within each resource pack, this location is a unique identifer for a
|
|
|
|
COMMENT resource; however, in a resource manager, there may be multiple resources
|
|
|
|
COMMENT with the same location available.
|
2021-03-31 14:47:17 -04:00
|
|
|
METHOD method_14484 hasMetadata ()Z
|
2021-04-02 17:05:30 -04:00
|
|
|
COMMENT Returns if this resource has any metadata.
|