2019-06-28 17:55:20 -04:00
|
|
|
CLASS net/minecraft/class_3300 net/minecraft/resource/ResourceManager
|
2020-12-02 09:37:53 -05:00
|
|
|
COMMENT Provides resource loading capabilities to Minecraft.
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_14487 getAllNamespaces ()Ljava/util/Set;
|
2020-12-02 09:37:53 -05:00
|
|
|
COMMENT Gets a set of all namespaces offered by the resource packs loaded by this manager.
|
2022-03-16 16:37:32 -04:00
|
|
|
METHOD method_14488 findResources (Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/Map;
|
2020-12-02 09:37:53 -05:00
|
|
|
COMMENT Returns a sorted list of identifiers matching a path predicate.
|
2020-12-25 18:25:28 -05:00
|
|
|
COMMENT
|
|
|
|
COMMENT <p>Scanning begins in {@code startingPath} and each candidate file present under that directory
|
2020-12-02 09:37:53 -05:00
|
|
|
COMMENT will be offered up to the predicate to decide whether it should be included or not.
|
2020-12-25 18:25:28 -05:00
|
|
|
COMMENT
|
|
|
|
COMMENT <p>Elements in the returned list may not, necessarily be unique. Additional effort is advised to ensure that
|
2020-12-02 09:37:53 -05:00
|
|
|
COMMENT duplicates in the returned list are discarded before loading.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return the list matching identifiers
|
|
|
|
ARG 1 startingPath
|
|
|
|
COMMENT the starting path to begin scanning from
|
2022-03-19 11:58:06 -04:00
|
|
|
ARG 2 allowedPathPredicate
|
2020-12-02 09:37:53 -05:00
|
|
|
COMMENT a predicate to determine whether a path should be included or not
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_14489 getAllResources (Lnet/minecraft/class_2960;)Ljava/util/List;
|
2020-12-02 09:37:53 -05:00
|
|
|
COMMENT Gets all of the available resources to the corresponding resource identifier.
|
2020-12-25 18:25:28 -05:00
|
|
|
COMMENT
|
|
|
|
COMMENT <p>Resources are returned in load order, or ascending order of priority, so the last element in the returned
|
2020-12-02 09:37:53 -05:00
|
|
|
COMMENT list is what would be returned normally by {@link #getResource}
|
2020-12-25 18:25:28 -05:00
|
|
|
COMMENT
|
2021-04-02 17:05:30 -04:00
|
|
|
COMMENT <p>Each resource in this returned list must be closed to avoid resource leaks.
|
2019-05-07 11:56:34 -04:00
|
|
|
ARG 1 id
|
2020-12-02 09:37:53 -05:00
|
|
|
COMMENT the resource identifier to search for
|
2020-06-08 15:50:36 -04:00
|
|
|
METHOD method_29213 streamResourcePacks ()Ljava/util/stream/Stream;
|
2020-12-02 09:37:53 -05:00
|
|
|
COMMENT Gets a stream of loaded resource packs in increasing order of priority.
|
2022-03-19 11:58:06 -04:00
|
|
|
METHOD method_41265 findAllResources (Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/Map;
|
|
|
|
ARG 1 startingPath
|
|
|
|
ARG 2 allowedPathPredicate
|
2020-06-08 15:50:36 -04:00
|
|
|
CLASS class_5353 Empty
|