Class ZipResourcePack

All Implemented Interfaces:
AutoCloseable, ResourcePack

public class ZipResourcePack
extends AbstractFileResourcePack
Mappings:
Namespace Name
official abx
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 Labx;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 c Labx;c: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> Labw;<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 Labx;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 Labw;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 Labw;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 Labz;a(Laca;)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
      Mappings:
      Namespace Name Mixin selector
      official finalize Labx;finalize()V
      intermediary finalize Lnet/minecraft/class_3258;finalize()V
      named finalize Lnet/minecraft/resource/ZipResourcePack;finalize()V
    • close

      public void close()
      Mappings:
      Namespace Name Mixin selector
      official close Labz;close()V
      intermediary close Lnet/minecraft/class_3262;close()V
      named close Lnet/minecraft/resource/ResourcePack;close()V
    • findResources

      public Collection<Identifier> findResources​(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)
      Mappings:
      Namespace Name Mixin selector
      official a Labz;a(Laca;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;