2021-03-13 16:17:59 -05:00
|
|
|
CLASS net/minecraft/class_5912 net/minecraft/resource/ResourceFactory
|
|
|
|
COMMENT Provides resource access.
|
2022-10-20 11:56:05 -04:00
|
|
|
METHOD fromMap (Ljava/util/Map;)Lnet/minecraft/class_5912;
|
|
|
|
ARG 0 map
|
2022-08-20 10:03:33 -04:00
|
|
|
METHOD getResourceOrThrow (Lnet/minecraft/class_2960;)Lnet/minecraft/class_3298;
|
|
|
|
ARG 1 id
|
2022-04-06 15:01:01 -04:00
|
|
|
METHOD method_14486 getResource (Lnet/minecraft/class_2960;)Ljava/util/Optional;
|
2021-03-13 16:17:59 -05:00
|
|
|
COMMENT Finds and returns the corresponding resource for a resource's identifier.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>Starts by scanning each resource pack from highest priority to lowest. If no resource packs were found
|
2022-05-12 13:28:22 -04:00
|
|
|
COMMENT to contain the requested entry, will return {@link Optional#empty()}.
|
2021-03-13 16:17:59 -05:00
|
|
|
COMMENT
|
2021-04-02 17:05:30 -04:00
|
|
|
COMMENT <p>The returned resource must be closed to avoid resource leaks.
|
2021-03-13 16:17:59 -05:00
|
|
|
ARG 1 id
|
|
|
|
COMMENT the resource identifier to search for
|
2022-10-20 11:56:05 -04:00
|
|
|
METHOD method_45307 (Ljava/util/Map;Lnet/minecraft/class_2960;)Ljava/util/Optional;
|
|
|
|
ARG 1 id
|
2022-08-20 10:03:33 -04:00
|
|
|
METHOD open (Lnet/minecraft/class_2960;)Ljava/io/InputStream;
|
|
|
|
ARG 1 id
|
|
|
|
METHOD openAsReader (Lnet/minecraft/class_2960;)Ljava/io/BufferedReader;
|
|
|
|
ARG 1 id
|