Package net.minecraft.resource
Class ZipResourcePack
java.lang.Object
net.minecraft.resource.AbstractFileResourcePack
net.minecraft.resource.ZipResourcePack
- All Implemented Interfaces:
AutoCloseable
,ResourcePack
- Mappings:
Namespace Name official aji
intermediary net/minecraft/class_3258
named net/minecraft/resource/ZipResourcePack
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourcePack
ResourcePack.ResultConsumer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final File
private boolean
private static final Logger
static final Splitter
Fields inherited from interface net.minecraft.resource.ResourcePack
METADATA_PATH_SUFFIX, PACK_METADATA_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
finalize()
void
findResources
(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer) getNamespaces
(ResourceType type) open
(ResourceType type, Identifier id) private @Nullable InputSupplier<InputStream>
private static String
toPath
(ResourceType type, Identifier id) Methods inherited from class net.minecraft.resource.AbstractFileResourcePack
getName, isAlwaysStable, parseMetadata, parseMetadata
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official d
Laji;d:Lorg/slf4j/Logger;
intermediary field_39096
Lnet/minecraft/class_3258;field_39096:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/resource/ZipResourcePack;LOGGER:Lorg/slf4j/Logger;
-
TYPE_NAMESPACE_SPLITTER
- Mappings:
Namespace Name Mixin selector official a
Laji;a:Lcom/google/common/base/Splitter;
intermediary field_14183
Lnet/minecraft/class_3258;field_14183:Lcom/google/common/base/Splitter;
named TYPE_NAMESPACE_SPLITTER
Lnet/minecraft/resource/ZipResourcePack;TYPE_NAMESPACE_SPLITTER:Lcom/google/common/base/Splitter;
-
backingZipFile
- Mappings:
Namespace Name Mixin selector official e
Laji;e:Ljava/io/File;
intermediary field_39998
Lnet/minecraft/class_3258;field_39998:Ljava/io/File;
named backingZipFile
Lnet/minecraft/resource/ZipResourcePack;backingZipFile:Ljava/io/File;
-
file
- Mappings:
Namespace Name Mixin selector official f
Laji;f:Ljava/util/zip/ZipFile;
intermediary field_14184
Lnet/minecraft/class_3258;field_14184:Ljava/util/zip/ZipFile;
named file
Lnet/minecraft/resource/ZipResourcePack;file:Ljava/util/zip/ZipFile;
-
failedToOpen
private boolean failedToOpen- Mappings:
Namespace Name Mixin selector official g
Laji;g:Z
intermediary field_39999
Lnet/minecraft/class_3258;field_39999:Z
named failedToOpen
Lnet/minecraft/resource/ZipResourcePack;failedToOpen:Z
-
-
Constructor Details
-
ZipResourcePack
- Mappings:
Namespace Name Mixin selector official <init>
Laji;<init>(Ljava/lang/String;Ljava/io/File;Z)V
intermediary <init>
Lnet/minecraft/class_3258;<init>(Ljava/lang/String;Ljava/io/File;Z)V
named <init>
Lnet/minecraft/resource/ZipResourcePack;<init>(Ljava/lang/String;Ljava/io/File;Z)V
-
-
Method Details
-
getZipFile
- Mappings:
Namespace Name Mixin selector official c
Laji;c()Ljava/util/zip/ZipFile;
intermediary method_14399
Lnet/minecraft/class_3258;method_14399()Ljava/util/zip/ZipFile;
named getZipFile
Lnet/minecraft/resource/ZipResourcePack;getZipFile()Ljava/util/zip/ZipFile;
-
toPath
- Mappings:
Namespace Name Mixin selector official b
Laji;b(Lajk;Lacq;)Ljava/lang/String;
intermediary method_45177
Lnet/minecraft/class_3258;method_45177(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Ljava/lang/String;
named toPath
Lnet/minecraft/resource/ZipResourcePack;toPath(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Ljava/lang/String;
-
openRoot
- Mappings:
Namespace Name Mixin selector official a
Lajj;a([Ljava/lang/String;)Lakn;
intermediary method_14410
Lnet/minecraft/class_3262;method_14410([Ljava/lang/String;)Lnet/minecraft/class_7367;
named openRoot
Lnet/minecraft/resource/ResourcePack;openRoot([Ljava/lang/String;)Lnet/minecraft/resource/InputSupplier;
-
open
- Mappings:
Namespace Name Mixin selector official a
Lajj;a(Lajk;Lacq;)Lakn;
intermediary method_14405
Lnet/minecraft/class_3262;method_14405(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Lnet/minecraft/class_7367;
named open
Lnet/minecraft/resource/ResourcePack;open(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Lnet/minecraft/resource/InputSupplier;
-
openFile
- Mappings:
Namespace Name Mixin selector official a
Laji;a(Ljava/lang/String;)Lakn;
intermediary method_14391
Lnet/minecraft/class_3258;method_14391(Ljava/lang/String;)Lnet/minecraft/class_7367;
named openFile
Lnet/minecraft/resource/ZipResourcePack;openFile(Ljava/lang/String;)Lnet/minecraft/resource/InputSupplier;
-
getNamespaces
- Mappings:
Namespace Name Mixin selector official a
Lajj;a(Lajk;)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;
-
finalize
-
close
public void close() -
findResources
public void findResources(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer) - Mappings:
Namespace Name Mixin selector official a
Lajj;a(Lajk;Ljava/lang/String;Ljava/lang/String;Lajj$a;)V
intermediary method_14408
Lnet/minecraft/class_3262;method_14408(Lnet/minecraft/class_3264;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/class_3262$class_7664;)V
named findResources
Lnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/resource/ResourcePack$ResultConsumer;)V
-