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 named net/minecraft/resource/ZipResourcePackintermediary net/minecraft/class_3258official asn
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate static classNested classes/interfaces inherited from interface net.minecraft.resource.ResourcePack
ResourcePack.ResultConsumer -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Loggerprivate final Stringprivate final ZipResourcePack.ZipFileWrapperFields inherited from interface net.minecraft.resource.ResourcePack
METADATA_PATH_SUFFIX, PACK_METADATA_NAME -
Constructor Summary
ConstructorsConstructorDescriptionZipResourcePack(ResourcePackInfo info, ZipResourcePack.ZipFileWrapper zipFile, String overlay) -
Method Summary
Modifier and TypeMethodDescriptionprivate StringappendOverlayPrefix(String path) voidclose()voidfindResources(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer) static StringgetNamespace(String prefix, String entryName) getNamespaces(ResourceType type) open(ResourceType type, Identifier id) private @Nullable InputSupplier<InputStream> private static StringtoPath(ResourceType type, Identifier id) Methods inherited from class net.minecraft.resource.AbstractFileResourcePack
getInfo, parseMetadata, parseMetadataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resource.ResourcePack
getId, getKnownPackInfo
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/resource/ZipResourcePack;LOGGER:Lorg/slf4j/Logger;intermediary field_39096Lnet/minecraft/class_3258;field_39096:Lorg/slf4j/Logger;official cLasn;c:Lorg/slf4j/Logger;
-
zipFile
- Mappings:
Namespace Name Mixin selector named zipFileLnet/minecraft/resource/ZipResourcePack;zipFile:Lnet/minecraft/resource/ZipResourcePack$ZipFileWrapper;intermediary field_45038Lnet/minecraft/class_3258;field_45038:Lnet/minecraft/class_3258$class_8616;official dLasn;d:Lasn$b;
-
overlay
- Mappings:
Namespace Name Mixin selector named overlayLnet/minecraft/resource/ZipResourcePack;overlay:Ljava/lang/String;intermediary field_45039Lnet/minecraft/class_3258;field_45039:Ljava/lang/String;official eLasn;e:Ljava/lang/String;
-
-
Constructor Details
-
ZipResourcePack
ZipResourcePack(ResourcePackInfo info, ZipResourcePack.ZipFileWrapper zipFile, String overlay) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/resource/ZipResourcePack;<init>(Lnet/minecraft/resource/ResourcePackInfo;Lnet/minecraft/resource/ZipResourcePack$ZipFileWrapper;Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_3258;<init>(Lnet/minecraft/class_9224;Lnet/minecraft/class_3258$class_8616;Ljava/lang/String;)Vofficial <init>Lasn;<init>(Lasp;Lasn$b;Ljava/lang/String;)V
-
-
Method Details
-
toPath
- Mappings:
Namespace Name Mixin selector named toPathLnet/minecraft/resource/ZipResourcePack;toPath(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Ljava/lang/String;intermediary method_45177Lnet/minecraft/class_3258;method_45177(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Ljava/lang/String;official bLasn;b(Lass;Lakr;)Ljava/lang/String;
-
openRoot
- Mappings:
Namespace Name Mixin selector named openRootLnet/minecraft/resource/ResourcePack;openRoot([Ljava/lang/String;)Lnet/minecraft/resource/InputSupplier;intermediary method_14410Lnet/minecraft/class_3262;method_14410([Ljava/lang/String;)Lnet/minecraft/class_7367;official aLasq;a([Ljava/lang/String;)Latw;
-
open
- Mappings:
Namespace Name Mixin selector named openLnet/minecraft/resource/ResourcePack;open(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Lnet/minecraft/resource/InputSupplier;intermediary method_14405Lnet/minecraft/class_3262;method_14405(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Lnet/minecraft/class_7367;official aLasq;a(Lass;Lakr;)Latw;
-
appendOverlayPrefix
- Mappings:
Namespace Name Mixin selector named appendOverlayPrefixLnet/minecraft/resource/ZipResourcePack;appendOverlayPrefix(Ljava/lang/String;)Ljava/lang/String;intermediary method_52422Lnet/minecraft/class_3258;method_52422(Ljava/lang/String;)Ljava/lang/String;official aLasn;a(Ljava/lang/String;)Ljava/lang/String;
-
openFile
- Mappings:
Namespace Name Mixin selector named openFileLnet/minecraft/resource/ZipResourcePack;openFile(Ljava/lang/String;)Lnet/minecraft/resource/InputSupplier;intermediary method_14391Lnet/minecraft/class_3258;method_14391(Ljava/lang/String;)Lnet/minecraft/class_7367;official bLasn;b(Ljava/lang/String;)Latw;
-
getNamespaces
- Mappings:
Namespace Name Mixin selector named getNamespacesLnet/minecraft/resource/ResourcePack;getNamespaces(Lnet/minecraft/resource/ResourceType;)Ljava/util/Set;intermediary method_14406Lnet/minecraft/class_3262;method_14406(Lnet/minecraft/class_3264;)Ljava/util/Set;official aLasq;a(Lass;)Ljava/util/Set;
-
getNamespace
- Mappings:
Namespace Name Mixin selector named getNamespaceLnet/minecraft/resource/ZipResourcePack;getNamespace(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;intermediary method_52423Lnet/minecraft/class_3258;method_52423(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;official aLasn;a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
-
close
public void close() -
findResources
public void findResources(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer) - Mappings:
Namespace Name Mixin selector named findResourcesLnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/resource/ResourcePack$ResultConsumer;)Vintermediary method_14408Lnet/minecraft/class_3262;method_14408(Lnet/minecraft/class_3264;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/class_3262$class_7664;)Vofficial aLasq;a(Lass;Ljava/lang/String;Ljava/lang/String;Lasq$a;)V
-