Package net.minecraft.client.resource
Class DefaultClientResourcePack
java.lang.Object
net.minecraft.resource.DefaultResourcePack
net.minecraft.client.resource.DefaultClientResourcePack
- All Implemented Interfaces:
AutoCloseable
,ResourcePack
@Environment(CLIENT) public class DefaultClientResourcePack extends DefaultResourcePack
- Mappings:
Namespace Name official esa
intermediary net/minecraft/class_1065
named net/minecraft/client/resource/DefaultClientResourcePack
-
Field Summary
Fields Modifier and Type Field Description private ResourceIndex
index
Fields inherited from class net.minecraft.resource.DefaultResourcePack
metadata, namespaces, resourceClass, resourcePath
-
Constructor Summary
Constructors Constructor Description DefaultClientResourcePack(PackResourceMetadata metadata, ResourceIndex index)
-
Method Summary
Modifier and Type Method Description boolean
contains(ResourceType type, Identifier id)
protected InputStream
findInputStream(ResourceType type, Identifier id)
Collection<Identifier>
findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)
protected InputStream
getInputStream(String path)
Methods inherited from class net.minecraft.resource.DefaultResourcePack
close, getName, getNamespaces, open, openRoot, parseMetadata
-
Field Details
-
index
- Mappings:
Namespace Name Mixin selector official e
Lesa;e:Lery;
intermediary field_5291
Lnet/minecraft/class_1065;field_5291:Lnet/minecraft/class_1064;
named index
Lnet/minecraft/client/resource/DefaultClientResourcePack;index:Lnet/minecraft/client/resource/ResourceIndex;
-
-
Constructor Details
-
DefaultClientResourcePack
- Mappings:
Namespace Name Mixin selector official <init>
Lesa;<init>(Lace;Lery;)V
intermediary <init>
Lnet/minecraft/class_1065;<init>(Lnet/minecraft/class_3272;Lnet/minecraft/class_1064;)V
named <init>
Lnet/minecraft/client/resource/DefaultClientResourcePack;<init>(Lnet/minecraft/resource/metadata/PackResourceMetadata;Lnet/minecraft/client/resource/ResourceIndex;)V
-
-
Method Details
-
findInputStream
- Overrides:
findInputStream
in classDefaultResourcePack
- Mappings:
Namespace Name Mixin selector official c
Lacc;c(Laca;Lwb;)Ljava/io/InputStream;
intermediary method_14416
Lnet/minecraft/class_3268;method_14416(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Ljava/io/InputStream;
named findInputStream
Lnet/minecraft/resource/DefaultResourcePack;findInputStream(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Ljava/io/InputStream;
-
contains
- Specified by:
contains
in interfaceResourcePack
- Overrides:
contains
in classDefaultResourcePack
- Mappings:
Namespace Name Mixin selector official b
Labz;b(Laca;Lwb;)Z
intermediary method_14411
Lnet/minecraft/class_3262;method_14411(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Z
named contains
Lnet/minecraft/resource/ResourcePack;contains(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Z
-
getInputStream
- Overrides:
getInputStream
in classDefaultResourcePack
- Mappings:
Namespace Name Mixin selector official a
Lacc;a(Ljava/lang/String;)Ljava/io/InputStream;
intermediary method_14417
Lnet/minecraft/class_3268;method_14417(Ljava/lang/String;)Ljava/io/InputStream;
named getInputStream
Lnet/minecraft/resource/DefaultResourcePack;getInputStream(Ljava/lang/String;)Ljava/io/InputStream;
-
findResources
public Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)- Specified by:
findResources
in interfaceResourcePack
- Overrides:
findResources
in classDefaultResourcePack
- Mappings:
Namespace Name Mixin selector official a
Labz;a(Laca;Ljava/lang/String;Ljava/lang/String;ILjava/util/function/Predicate;)Ljava/util/Collection;
intermediary method_14408
Lnet/minecraft/class_3262;method_14408(Lnet/minecraft/class_3264;Ljava/lang/String;Ljava/lang/String;ILjava/util/function/Predicate;)Ljava/util/Collection;
named findResources
Lnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;ILjava/util/function/Predicate;)Ljava/util/Collection;
-