Class ZipResourcePack

All Implemented Interfaces:
AutoCloseable, ResourcePack

public class ZipResourcePack extends AbstractFileResourcePack
Mappings:
Namespace Name
named net/minecraft/resource/ZipResourcePack
intermediary net/minecraft/class_3258
official aud
  • Field Details

    • LOGGER

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/resource/ZipResourcePack;LOGGER:Lorg/slf4j/Logger;
      intermediary field_39096 Lnet/minecraft/class_3258;field_39096:Lorg/slf4j/Logger;
      official c Laud;c:Lorg/slf4j/Logger;
    • zipFile

      private final ZipResourcePack.ZipFileWrapper zipFile
      Mappings:
      Namespace Name Mixin selector
      named zipFile Lnet/minecraft/resource/ZipResourcePack;zipFile:Lnet/minecraft/resource/ZipResourcePack$ZipFileWrapper;
      intermediary field_45038 Lnet/minecraft/class_3258;field_45038:Lnet/minecraft/class_3258$class_8616;
      official d Laud;d:Laud$b;
    • overlay

      private final String overlay
      Mappings:
      Namespace Name Mixin selector
      named overlay Lnet/minecraft/resource/ZipResourcePack;overlay:Ljava/lang/String;
      intermediary field_45039 Lnet/minecraft/class_3258;field_45039:Ljava/lang/String;
      official e Laud;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;)V
      intermediary <init> Lnet/minecraft/class_3258;<init>(Lnet/minecraft/class_9224;Lnet/minecraft/class_3258$class_8616;Ljava/lang/String;)V
      official <init> Laud;<init>(Lauf;Laud$b;Ljava/lang/String;)V
  • Method Details

    • toPath

      private static String toPath(ResourceType type, Identifier id)
      Mappings:
      Namespace Name Mixin selector
      named toPath Lnet/minecraft/resource/ZipResourcePack;toPath(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Ljava/lang/String;
      intermediary method_45177 Lnet/minecraft/class_3258;method_45177(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Ljava/lang/String;
      official b Laud;b(Laui;Lalz;)Ljava/lang/String;
    • openRoot

      @Nullable public @Nullable InputSupplier<InputStream> openRoot(String[] segments)
      Mappings:
      Namespace Name Mixin selector
      named openRoot Lnet/minecraft/resource/ResourcePack;openRoot([Ljava/lang/String;)Lnet/minecraft/resource/InputSupplier;
      intermediary method_14410 Lnet/minecraft/class_3262;method_14410([Ljava/lang/String;)Lnet/minecraft/class_7367;
      official a Laug;a([Ljava/lang/String;)Lavn;
    • open

      Mappings:
      Namespace Name Mixin selector
      named open Lnet/minecraft/resource/ResourcePack;open(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Lnet/minecraft/resource/InputSupplier;
      intermediary method_14405 Lnet/minecraft/class_3262;method_14405(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Lnet/minecraft/class_7367;
      official a Laug;a(Laui;Lalz;)Lavn;
    • appendOverlayPrefix

      private String appendOverlayPrefix(String path)
      Mappings:
      Namespace Name Mixin selector
      named appendOverlayPrefix Lnet/minecraft/resource/ZipResourcePack;appendOverlayPrefix(Ljava/lang/String;)Ljava/lang/String;
      intermediary method_52422 Lnet/minecraft/class_3258;method_52422(Ljava/lang/String;)Ljava/lang/String;
      official a Laud;a(Ljava/lang/String;)Ljava/lang/String;
    • openFile

      Mappings:
      Namespace Name Mixin selector
      named openFile Lnet/minecraft/resource/ZipResourcePack;openFile(Ljava/lang/String;)Lnet/minecraft/resource/InputSupplier;
      intermediary method_14391 Lnet/minecraft/class_3258;method_14391(Ljava/lang/String;)Lnet/minecraft/class_7367;
      official b Laud;b(Ljava/lang/String;)Lavn;
    • getNamespaces

      public Set<String> getNamespaces(ResourceType type)
      Mappings:
      Namespace Name Mixin selector
      named getNamespaces Lnet/minecraft/resource/ResourcePack;getNamespaces(Lnet/minecraft/resource/ResourceType;)Ljava/util/Set;
      intermediary method_14406 Lnet/minecraft/class_3262;method_14406(Lnet/minecraft/class_3264;)Ljava/util/Set;
      official a Laug;a(Laui;)Ljava/util/Set;
    • getNamespace

      public static String getNamespace(String prefix, String entryName)
      Mappings:
      Namespace Name Mixin selector
      named getNamespace Lnet/minecraft/resource/ZipResourcePack;getNamespace(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;
      official a Laud;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 findResources Lnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/resource/ResourcePack$ResultConsumer;)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
      official a Laug;a(Laui;Ljava/lang/String;Ljava/lang/String;Laug$a;)V