Package net.minecraft.client.resource
Class Format3ResourcePack
java.lang.Object
net.minecraft.client.resource.Format3ResourcePack
- All Implemented Interfaces:
AutoCloseable
,ResourcePack
@Environment(CLIENT) public class Format3ResourcePack extends Object implements ResourcePack
- Mappings:
Namespace Name official esf
intermediary net/minecraft/class_1073
named net/minecraft/client/resource/Format3ResourcePack
-
Field Summary
Fields Modifier and Type Field Description private Map<Identifier,Identifier>
idMap
static Map<Identifier,Identifier>
NEW_TO_OLD_MAP
private ResourcePack
parent
-
Constructor Summary
Constructors Constructor Description Format3ResourcePack(ResourcePack parent, Map<Identifier,Identifier> idMap)
-
Method Summary
Modifier and Type Method Description void
close()
boolean
contains(ResourceType type, Identifier id)
Collection<Identifier>
findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)
private static Identifier
getMetadataLocation(Identifier id)
String
getName()
Set<String>
getNamespaces(ResourceType type)
private Identifier
getRedirectedId(Identifier id)
InputStream
open(ResourceType type, Identifier id)
InputStream
openRoot(String fileName)
<T> T
parseMetadata(ResourceMetadataReader<T> metaReader)
-
Field Details
-
NEW_TO_OLD_MAP
- Mappings:
Namespace Name Mixin selector official a
Lesf;a:Ljava/util/Map;
intermediary field_5317
Lnet/minecraft/class_1073;field_5317:Ljava/util/Map;
named NEW_TO_OLD_MAP
Lnet/minecraft/client/resource/Format3ResourcePack;NEW_TO_OLD_MAP:Ljava/util/Map;
-
parent
- Mappings:
Namespace Name Mixin selector official b
Lesf;b:Labz;
intermediary field_5316
Lnet/minecraft/class_1073;field_5316:Lnet/minecraft/class_3262;
named parent
Lnet/minecraft/client/resource/Format3ResourcePack;parent:Lnet/minecraft/resource/ResourcePack;
-
idMap
- Mappings:
Namespace Name Mixin selector official c
Lesf;c:Ljava/util/Map;
intermediary field_5318
Lnet/minecraft/class_1073;field_5318:Ljava/util/Map;
named idMap
Lnet/minecraft/client/resource/Format3ResourcePack;idMap:Ljava/util/Map;
-
-
Constructor Details
-
Format3ResourcePack
- Mappings:
Namespace Name Mixin selector official <init>
Lesf;<init>(Labz;Ljava/util/Map;)V
intermediary <init>
Lnet/minecraft/class_1073;<init>(Lnet/minecraft/class_3262;Ljava/util/Map;)V
named <init>
Lnet/minecraft/client/resource/Format3ResourcePack;<init>(Lnet/minecraft/resource/ResourcePack;Ljava/util/Map;)V
-
-
Method Details
-
getMetadataLocation
- Mappings:
Namespace Name Mixin selector official a
Lesf;a(Lwb;)Lwb;
intermediary method_4660
Lnet/minecraft/class_1073;method_4660(Lnet/minecraft/class_2960;)Lnet/minecraft/class_2960;
named getMetadataLocation
Lnet/minecraft/client/resource/Format3ResourcePack;getMetadataLocation(Lnet/minecraft/util/Identifier;)Lnet/minecraft/util/Identifier;
-
getRedirectedId
- Mappings:
Namespace Name Mixin selector official b
Lesf;b(Lwb;)Lwb;
intermediary method_4658
Lnet/minecraft/class_1073;method_4658(Lnet/minecraft/class_2960;)Lnet/minecraft/class_2960;
named getRedirectedId
Lnet/minecraft/client/resource/Format3ResourcePack;getRedirectedId(Lnet/minecraft/util/Identifier;)Lnet/minecraft/util/Identifier;
-
openRoot
- Specified by:
openRoot
in interfaceResourcePack
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Labz;b(Ljava/lang/String;)Ljava/io/InputStream;
intermediary method_14410
Lnet/minecraft/class_3262;method_14410(Ljava/lang/String;)Ljava/io/InputStream;
named openRoot
Lnet/minecraft/resource/ResourcePack;openRoot(Ljava/lang/String;)Ljava/io/InputStream;
-
open
- Specified by:
open
in interfaceResourcePack
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Labz;a(Laca;Lwb;)Ljava/io/InputStream;
intermediary method_14405
Lnet/minecraft/class_3262;method_14405(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Ljava/io/InputStream;
named open
Lnet/minecraft/resource/ResourcePack;open(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Ljava/io/InputStream;
-
findResources
public Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)- Specified by:
findResources
in interfaceResourcePack
- 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;
-
contains
- Specified by:
contains
in interfaceResourcePack
- 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
-
getNamespaces
- Specified by:
getNamespaces
in interfaceResourcePack
- Mappings:
Namespace Name Mixin selector official a
Labz;a(Laca;)Ljava/util/Set;
intermediary method_14406
Lnet/minecraft/class_3262;method_14406(Lnet/minecraft/class_3264;)Ljava/util/Set;
named getNamespaces
Lnet/minecraft/resource/ResourcePack;getNamespaces(Lnet/minecraft/resource/ResourceType;)Ljava/util/Set;
-
parseMetadata
- Specified by:
parseMetadata
in interfaceResourcePack
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Labz;a(Lacd;)Ljava/lang/Object;
intermediary method_14407
Lnet/minecraft/class_3262;method_14407(Lnet/minecraft/class_3270;)Ljava/lang/Object;
named parseMetadata
Lnet/minecraft/resource/ResourcePack;parseMetadata(Lnet/minecraft/resource/metadata/ResourceMetadataReader;)Ljava/lang/Object;
-
getName
- Specified by:
getName
in interfaceResourcePack
- Mappings:
Namespace Name Mixin selector official a
Labz;a()Ljava/lang/String;
intermediary method_14409
Lnet/minecraft/class_3262;method_14409()Ljava/lang/String;
named getName
Lnet/minecraft/resource/ResourcePack;getName()Ljava/lang/String;
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceResourcePack
- Mappings:
Namespace Name Mixin selector official close
Labz;close()V
intermediary close
Lnet/minecraft/class_3262;close()V
named close
Lnet/minecraft/resource/ResourcePack;close()V
-