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)
|
2022-04-08 03:56:33 -04:00
|
|
|
FIELD field_38684 resourcePackName Ljava/lang/String;
|
|
|
|
FIELD field_38685 inputSupplier Lnet/minecraft/class_3298$class_7367;
|
|
|
|
FIELD field_38686 metadataSupplier Lnet/minecraft/class_3298$class_7367;
|
|
|
|
FIELD field_38687 metadata Lnet/minecraft/class_7368;
|
|
|
|
METHOD <init> (Ljava/lang/String;Lnet/minecraft/class_3298$class_7367;)V
|
|
|
|
ARG 1 resourcePackName
|
|
|
|
ARG 2 inputSupplier
|
|
|
|
METHOD <init> (Ljava/lang/String;Lnet/minecraft/class_3298$class_7367;Lnet/minecraft/class_3298$class_7367;)V
|
|
|
|
ARG 1 resourcePackName
|
|
|
|
ARG 2 inputSupplier
|
|
|
|
ARG 3 metadataSupplier
|
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.
|
2022-04-06 15:01:01 -04:00
|
|
|
METHOD method_14481 getMetadata ()Lnet/minecraft/class_7368;
|
2022-04-08 03:56:33 -04:00
|
|
|
COMMENT {@return the metadata for the resource}
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>The metadata must then be decoded using
|
|
|
|
COMMENT {@link ResourceMetadata#decode(ResourceMetadataReader)} before using.
|
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.
|
2022-04-08 03:56:33 -04:00
|
|
|
METHOD method_43039 getReader ()Ljava/io/BufferedReader;
|
|
|
|
CLASS class_7367 InputSupplier
|