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 alwintermediary net/minecraft/class_3258named net/minecraft/resource/ZipResourcePack
-
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 TypeFieldDescriptionprivate final ZipResourcePack.class_8616private final String(package private) static final LoggerFields inherited from interface net.minecraft.resource.ResourcePack
METADATA_PATH_SUFFIX, PACK_METADATA_NAME -
Constructor Summary
ConstructorsConstructorDescriptionZipResourcePack(String name, ZipResourcePack.class_8616 class_8616, boolean alwaysStable, String string) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidfindResources(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer) getNamespaces(ResourceType type) private Stringmethod_52422(String string) static Stringmethod_52423(String string, String string2) open(ResourceType type, Identifier id) private @Nullable InputSupplier<InputStream>private static StringtoPath(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 cLalw;c:Lorg/slf4j/Logger;intermediary field_39096Lnet/minecraft/class_3258;field_39096:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/resource/ZipResourcePack;LOGGER:Lorg/slf4j/Logger;
-
field_45038
- Mappings:
Namespace Name Mixin selector official dLalw;d:Lalw$b;intermediary field_45038Lnet/minecraft/class_3258;field_45038:Lnet/minecraft/class_3258$class_8616;named field_45038Lnet/minecraft/resource/ZipResourcePack;field_45038:Lnet/minecraft/resource/ZipResourcePack$class_8616;
-
field_45039
- Mappings:
Namespace Name Mixin selector official eLalw;e:Ljava/lang/String;intermediary field_45039Lnet/minecraft/class_3258;field_45039:Ljava/lang/String;named field_45039Lnet/minecraft/resource/ZipResourcePack;field_45039:Ljava/lang/String;
-
-
Constructor Details
-
ZipResourcePack
ZipResourcePack(String name, ZipResourcePack.class_8616 class_8616, boolean alwaysStable, String string) - Mappings:
Namespace Name Mixin selector official <init>Lalw;<init>(Ljava/lang/String;Lalw$b;ZLjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_3258;<init>(Ljava/lang/String;Lnet/minecraft/class_3258$class_8616;ZLjava/lang/String;)Vnamed <init>Lnet/minecraft/resource/ZipResourcePack;<init>(Ljava/lang/String;Lnet/minecraft/resource/ZipResourcePack$class_8616;ZLjava/lang/String;)V
-
-
Method Details
-
toPath
- Mappings:
Namespace Name Mixin selector official bLalw;b(Lalz;Laep;)Ljava/lang/String;intermediary method_45177Lnet/minecraft/class_3258;method_45177(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Ljava/lang/String;named toPathLnet/minecraft/resource/ZipResourcePack;toPath(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Ljava/lang/String;
-
openRoot
- Mappings:
Namespace Name Mixin selector official aLaly;a([Ljava/lang/String;)Lanc;intermediary method_14410Lnet/minecraft/class_3262;method_14410([Ljava/lang/String;)Lnet/minecraft/class_7367;named openRootLnet/minecraft/resource/ResourcePack;openRoot([Ljava/lang/String;)Lnet/minecraft/resource/InputSupplier;
-
open
- Mappings:
Namespace Name Mixin selector official aLaly;a(Lalz;Laep;)Lanc;intermediary method_14405Lnet/minecraft/class_3262;method_14405(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Lnet/minecraft/class_7367;named openLnet/minecraft/resource/ResourcePack;open(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Lnet/minecraft/resource/InputSupplier;
-
method_52422
- Mappings:
Namespace Name Mixin selector official aLalw;a(Ljava/lang/String;)Ljava/lang/String;intermediary method_52422Lnet/minecraft/class_3258;method_52422(Ljava/lang/String;)Ljava/lang/String;named method_52422Lnet/minecraft/resource/ZipResourcePack;method_52422(Ljava/lang/String;)Ljava/lang/String;
-
openFile
- Mappings:
Namespace Name Mixin selector official bLalw;b(Ljava/lang/String;)Lanc;intermediary method_14391Lnet/minecraft/class_3258;method_14391(Ljava/lang/String;)Lnet/minecraft/class_7367;named openFileLnet/minecraft/resource/ZipResourcePack;openFile(Ljava/lang/String;)Lnet/minecraft/resource/InputSupplier;
-
getNamespaces
- Mappings:
Namespace Name Mixin selector official aLaly;a(Lalz;)Ljava/util/Set;intermediary method_14406Lnet/minecraft/class_3262;method_14406(Lnet/minecraft/class_3264;)Ljava/util/Set;named getNamespacesLnet/minecraft/resource/ResourcePack;getNamespaces(Lnet/minecraft/resource/ResourceType;)Ljava/util/Set;
-
method_52423
- Mappings:
Namespace Name Mixin selector official aLalw;a(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;named method_52423Lnet/minecraft/resource/ZipResourcePack;method_52423(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 aLaly;a(Lalz;Ljava/lang/String;Ljava/lang/String;Laly$a;)Vintermediary method_14408Lnet/minecraft/class_3262;method_14408(Lnet/minecraft/class_3264;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/class_3262$class_7664;)Vnamed findResourcesLnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/resource/ResourcePack$ResultConsumer;)V
-