Class AbstractFileResourcePack

java.lang.Object
net.minecraft.resource.AbstractFileResourcePack
All Implemented Interfaces:
AutoCloseable, ResourcePack
Direct Known Subclasses:
DirectoryResourcePack, ZipResourcePack

public abstract class AbstractFileResourcePack extends Object implements ResourcePack
Mappings:
Namespace Name
official ahi
intermediary net/minecraft/class_3255
named net/minecraft/resource/AbstractFileResourcePack
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lahi;b:Lorg/slf4j/Logger;
      intermediary field_14182 Lnet/minecraft/class_3255;field_14182:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/resource/AbstractFileResourcePack;LOGGER:Lorg/slf4j/Logger;
    • base

      protected final File base
      Mappings:
      Namespace Name Mixin selector
      official a Lahi;a:Ljava/io/File;
      intermediary field_14181 Lnet/minecraft/class_3255;field_14181:Ljava/io/File;
      named base Lnet/minecraft/resource/AbstractFileResourcePack;base:Ljava/io/File;
  • Constructor Details

    • AbstractFileResourcePack

      public AbstractFileResourcePack(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

    • getFilename

      private static String getFilename(ResourceType type, Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official c Lahi;c(Lahm;Labb;)Ljava/lang/String;
      intermediary method_14395 Lnet/minecraft/class_3255;method_14395(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Ljava/lang/String;
      named getFilename Lnet/minecraft/resource/AbstractFileResourcePack;getFilename(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Ljava/lang/String;
    • relativize

      protected static String relativize(File base, File target)
      Mappings:
      Namespace Name Mixin selector
      official a Lahi;a(Ljava/io/File;Ljava/io/File;)Ljava/lang/String;
      intermediary method_14396 Lnet/minecraft/class_3255;method_14396(Ljava/io/File;Ljava/io/File;)Ljava/lang/String;
      named relativize Lnet/minecraft/resource/AbstractFileResourcePack;relativize(Ljava/io/File;Ljava/io/File;)Ljava/lang/String;
    • open

      public InputStream open(ResourceType type, Identifier id) throws IOException
      Specified by:
      open in interface ResourcePack
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lahl;a(Lahm;Labb;)Ljava/io/InputStream;
      intermediary method_14405 Lnet/minecraft/class_3262;method_14405(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Ljava/io/InputStream;
      named open Lnet/minecraft/resource/ResourcePack;open(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Ljava/io/InputStream;
    • contains

      public boolean contains(ResourceType type, Identifier id)
      Specified by:
      contains in interface ResourcePack
      Mappings:
      Namespace Name Mixin selector
      official b Lahl;b(Lahm;Labb;)Z
      intermediary method_14411 Lnet/minecraft/class_3262;method_14411(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Z
      named contains Lnet/minecraft/resource/ResourcePack;contains(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Z
    • openFile

      protected abstract InputStream openFile(String name) throws IOException
      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;
    • openRoot

      public InputStream openRoot(String fileName) throws IOException
      Specified by:
      openRoot in interface ResourcePack
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lahl;b(Ljava/lang/String;)Ljava/io/InputStream;
      intermediary method_14410 Lnet/minecraft/class_3262;method_14410(Ljava/lang/String;)Ljava/io/InputStream;
      named openRoot Lnet/minecraft/resource/ResourcePack;openRoot(Ljava/lang/String;)Ljava/io/InputStream;
    • containsFile

      protected abstract boolean containsFile(String name)
      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
    • warnNonLowerCaseNamespace

      protected void warnNonLowerCaseNamespace(String namespace)
      Mappings:
      Namespace Name Mixin selector
      official d Lahi;d(Ljava/lang/String;)V
      intermediary method_14394 Lnet/minecraft/class_3255;method_14394(Ljava/lang/String;)V
      named warnNonLowerCaseNamespace Lnet/minecraft/resource/AbstractFileResourcePack;warnNonLowerCaseNamespace(Ljava/lang/String;)V
    • parseMetadata

      @Nullable public <T> T parseMetadata(ResourceMetadataReader<T> metaReader) throws IOException
      Specified by:
      parseMetadata in interface ResourcePack
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lahl;a(Lahp;)Ljava/lang/Object;
      intermediary method_14407 Lnet/minecraft/class_3262;method_14407(Lnet/minecraft/class_3270;)Ljava/lang/Object;
      named parseMetadata Lnet/minecraft/resource/ResourcePack;parseMetadata(Lnet/minecraft/resource/metadata/ResourceMetadataReader;)Ljava/lang/Object;
    • parseMetadata

      @Nullable public static <T> T parseMetadata(ResourceMetadataReader<T> metaReader, InputStream inputStream)
      Mappings:
      Namespace Name Mixin selector
      official a Lahi;a(Lahp;Ljava/io/InputStream;)Ljava/lang/Object;
      intermediary method_14392 Lnet/minecraft/class_3255;method_14392(Lnet/minecraft/class_3270;Ljava/io/InputStream;)Ljava/lang/Object;
      named parseMetadata Lnet/minecraft/resource/AbstractFileResourcePack;parseMetadata(Lnet/minecraft/resource/metadata/ResourceMetadataReader;Ljava/io/InputStream;)Ljava/lang/Object;
    • getName

      public String getName()
      Specified by:
      getName in interface ResourcePack
      Mappings:
      Namespace Name Mixin selector
      official a Lahl;a()Ljava/lang/String;
      intermediary method_14409 Lnet/minecraft/class_3262;method_14409()Ljava/lang/String;
      named getName Lnet/minecraft/resource/ResourcePack;getName()Ljava/lang/String;