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
-
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 resourcePack, Map<Identifier,Identifier> map)
-
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 identifier)
String
getName()
Set<String>
getNamespaces(ResourceType type)
private Identifier
getRedirectedId(Identifier identifier)
InputStream
open(ResourceType type, Identifier id)
InputStream
openRoot(String fileName)
<T> T
parseMetadata(ResourceMetadataReader<T> metaReader)
-
Field Details
-
NEW_TO_OLD_MAP
-
parent
-
idMap
-
-
Constructor Details
-
Format3ResourcePack
-
-
Method Details
-
getMetadataLocation
-
getRedirectedId
-
openRoot
- Specified by:
openRoot
in interfaceResourcePack
- Throws:
IOException
-
open
- Specified by:
open
in interfaceResourcePack
- Throws:
IOException
-
findResources
public Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)- Specified by:
findResources
in interfaceResourcePack
-
contains
- Specified by:
contains
in interfaceResourcePack
-
getNamespaces
- Specified by:
getNamespaces
in interfaceResourcePack
-
parseMetadata
- Specified by:
parseMetadata
in interfaceResourcePack
-
getName
- Specified by:
getName
in interfaceResourcePack
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceResourcePack
-