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 amf
intermediary net/minecraft/class_3258
named net/minecraft/resource/ZipResourcePack
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
private static class
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourcePack
ResourcePack.ResultConsumer
-
Field Summary
Modifier and TypeFieldDescription(package private) static final Logger
private final String
private final ZipResourcePack.ZipFileWrapper
Fields inherited from interface net.minecraft.resource.ResourcePack
METADATA_PATH_SUFFIX, PACK_METADATA_NAME
-
Constructor Summary
ConstructorDescriptionZipResourcePack
(String name, ZipResourcePack.ZipFileWrapper zipFile, boolean alwaysStable, String overlay) -
Method Summary
Modifier and TypeMethodDescriptionprivate String
appendOverlayPrefix
(String path) void
close()
void
findResources
(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer) static String
getNamespace
(String prefix, String entryName) getNamespaces
(ResourceType type) open
(ResourceType type, Identifier id) private @Nullable InputSupplier<InputStream>
@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 c
Lamf;c: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;
-
zipFile
- Mappings:
Namespace Name Mixin selector official d
Lamf;d:Lamf$b;
intermediary field_45038
Lnet/minecraft/class_3258;field_45038:Lnet/minecraft/class_3258$class_8616;
named zipFile
Lnet/minecraft/resource/ZipResourcePack;zipFile:Lnet/minecraft/resource/ZipResourcePack$ZipFileWrapper;
-
overlay
- Mappings:
Namespace Name Mixin selector official e
Lamf;e:Ljava/lang/String;
intermediary field_45039
Lnet/minecraft/class_3258;field_45039:Ljava/lang/String;
named overlay
Lnet/minecraft/resource/ZipResourcePack;overlay:Ljava/lang/String;
-
-
Constructor Details
-
ZipResourcePack
ZipResourcePack(String name, ZipResourcePack.ZipFileWrapper zipFile, boolean alwaysStable, String overlay) - Mappings:
Namespace Name Mixin selector official <init>
Lamf;<init>(Ljava/lang/String;Lamf$b;ZLjava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_3258;<init>(Ljava/lang/String;Lnet/minecraft/class_3258$class_8616;ZLjava/lang/String;)V
named <init>
Lnet/minecraft/resource/ZipResourcePack;<init>(Ljava/lang/String;Lnet/minecraft/resource/ZipResourcePack$ZipFileWrapper;ZLjava/lang/String;)V
-
-
Method Details
-
toPath
- Mappings:
Namespace Name Mixin selector official b
Lamf;b(Lami;Laew;)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
Lamh;a([Ljava/lang/String;)Lanl;
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
Lamh;a(Lami;Laew;)Lanl;
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;
-
appendOverlayPrefix
- Mappings:
Namespace Name Mixin selector official a
Lamf;a(Ljava/lang/String;)Ljava/lang/String;
intermediary method_52422
Lnet/minecraft/class_3258;method_52422(Ljava/lang/String;)Ljava/lang/String;
named appendOverlayPrefix
Lnet/minecraft/resource/ZipResourcePack;appendOverlayPrefix(Ljava/lang/String;)Ljava/lang/String;
-
openFile
- Mappings:
Namespace Name Mixin selector official b
Lamf;b(Ljava/lang/String;)Lanl;
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
Lamh;a(Lami;)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;
-
getNamespace
- Mappings:
Namespace Name Mixin selector official a
Lamf;a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
intermediary method_52423
Lnet/minecraft/class_3258;method_52423(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
named getNamespace
Lnet/minecraft/resource/ZipResourcePack;getNamespace(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 official a
Lamh;a(Lami;Ljava/lang/String;Ljava/lang/String;Lamh$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
-