Class ZipResourcePack

All Implemented Interfaces:
AutoCloseable, ResourcePack

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

    • TYPE_NAMESPACE_SPLITTER

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

      private ZipFile file
      Mappings:
      Namespace Name Mixin selector
      official e Lact;e: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> Lacs;<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 Lact;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 Lacs;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 Lacs;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 Lacv;a(Lacw;)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, int maxDepth, Predicate<String> pathFilter)
      Mappings:
      Namespace Name Mixin selector
      official a Lacv;a(Lacw;Ljava/lang/String;Ljava/lang/String;ILjava/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;ILjava/util/function/Predicate;)Ljava/util/Collection;
      named findResources Lnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;ILjava/util/function/Predicate;)Ljava/util/Collection;