Package net.minecraft.resource
Class AbstractFileResourcePack
java.lang.Object
net.minecraft.resource.AbstractFileResourcePack
- All Implemented Interfaces:
AutoCloseable
,ResourcePack
- Direct Known Subclasses:
DirectoryResourcePack
,ZipResourcePack
- Mappings:
Namespace Name official ahi
intermediary net/minecraft/class_3255
named net/minecraft/resource/AbstractFileResourcePack
-
Field Summary
Fields inherited from interface net.minecraft.resource.ResourcePack
METADATA_PATH_SUFFIX, PACK_METADATA_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(ResourceType type, Identifier id) protected abstract boolean
containsFile
(String name) private static String
getFilename
(ResourceType type, Identifier id) getName()
open
(ResourceType type, Identifier id) protected abstract InputStream
<T> T
parseMetadata
(ResourceMetadataReader<T> metaReader) static <T> T
parseMetadata
(ResourceMetadataReader<T> metaReader, InputStream inputStream) protected static String
relativize
(File base, File target) protected void
warnNonLowerCaseNamespace
(String namespace) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.resource.ResourcePack
close, findResources, getNamespaces
-
Field Details
-
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
- 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
- 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
- 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
- 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
- Specified by:
open
in interfaceResourcePack
- 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
- Specified by:
contains
in interfaceResourcePack
- 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
- 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
- Specified by:
openRoot
in interfaceResourcePack
- 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
- 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
- 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
- Specified by:
parseMetadata
in interfaceResourcePack
- 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
- Specified by:
getName
in interfaceResourcePack
- 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;
-