Class ZipResourcePack

All Implemented Interfaces:
AutoCloseable, ResourcePack

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

    • field_39096

      private static final org.slf4j.Logger field_39096
      Mappings:
      Namespace Name Mixin selector
      official e Lahj;e:Lorg/slf4j/Logger;
      intermediary field_39096 Lnet/minecraft/class_3258;field_39096:Lorg/slf4j/Logger;
      named field_39096 Lnet/minecraft/resource/ZipResourcePack;field_39096:Lorg/slf4j/Logger;
    • TYPE_NAMESPACE_SPLITTER

      public static final Splitter TYPE_NAMESPACE_SPLITTER
      Mappings:
      Namespace Name Mixin selector
      official b Lahj;b: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;
    • file

      @Nullable private @Nullable ZipFile file
      Mappings:
      Namespace Name Mixin selector
      official f Lahj;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;
  • Constructor Details

    • ZipResourcePack

      public ZipResourcePack(File base)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lahi;<init>(Ljava/io/File;)V
      intermediary <init> Lnet/minecraft/class_3255;<init>(Ljava/io/File;)V
      named <init> Lnet/minecraft/resource/AbstractFileResourcePack;<init>(Ljava/io/File;)V
  • Method Details

    • getZipFile

      private ZipFile getZipFile() throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lahj;b()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;
    • openFile

      protected InputStream openFile(String name) throws IOException
      Specified by:
      openFile in class AbstractFileResourcePack
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lahi;a(Ljava/lang/String;)Ljava/io/InputStream;
      intermediary method_14391 Lnet/minecraft/class_3255;method_14391(Ljava/lang/String;)Ljava/io/InputStream;
      named openFile Lnet/minecraft/resource/AbstractFileResourcePack;openFile(Ljava/lang/String;)Ljava/io/InputStream;
    • containsFile

      public boolean containsFile(String name)
      Specified by:
      containsFile in class AbstractFileResourcePack
      Mappings:
      Namespace Name Mixin selector
      official c Lahi;c(Ljava/lang/String;)Z
      intermediary method_14393 Lnet/minecraft/class_3255;method_14393(Ljava/lang/String;)Z
      named containsFile Lnet/minecraft/resource/AbstractFileResourcePack;containsFile(Ljava/lang/String;)Z
    • getNamespaces

      public Set<String> getNamespaces(ResourceType type)
      Mappings:
      Namespace Name Mixin selector
      official a Lahl;a(Lahm;)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

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • close

      public void close()
    • findResources

      public Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, Predicate<Identifier> allowedPathPredicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lahl;a(Lahm;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/Collection;
      intermediary method_14408 Lnet/minecraft/class_3262;method_14408(Lnet/minecraft/class_3264;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/Collection;
      named findResources Lnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/Collection;