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 ajr
intermediary net/minecraft/class_3255
named net/minecraft/resource/AbstractFileResourcePack
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourcePack
ResourcePack.ResultConsumer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private static final Logger
private final String
Fields inherited from interface net.minecraft.resource.ResourcePack
METADATA_PATH_SUFFIX, PACK_METADATA_NAME
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractFileResourcePack
(String name, boolean alwaysStable) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
boolean
Returns whether the dynamic registry entries from this pack are always "stable"/not experimental.<T> T
parseMetadata
(ResourceMetadataReader<T> metaReader) static <T> T
parseMetadata
(ResourceMetadataReader<T> metaReader, InputStream inputStream) 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, open, openRoot
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lajr;a: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;
-
name
- Mappings:
Namespace Name Mixin selector official d
Lajr;d:Ljava/lang/String;
intermediary field_39993
Lnet/minecraft/class_3255;field_39993:Ljava/lang/String;
named name
Lnet/minecraft/resource/AbstractFileResourcePack;name:Ljava/lang/String;
-
alwaysStable
private final boolean alwaysStable- Mappings:
Namespace Name Mixin selector official e
Lajr;e:Z
intermediary field_40857
Lnet/minecraft/class_3255;field_40857:Z
named alwaysStable
Lnet/minecraft/resource/AbstractFileResourcePack;alwaysStable:Z
-
-
Constructor Details
-
AbstractFileResourcePack
- Mappings:
Namespace Name Mixin selector official <init>
Lajr;<init>(Ljava/lang/String;Z)V
intermediary <init>
Lnet/minecraft/class_3255;<init>(Ljava/lang/String;Z)V
named <init>
Lnet/minecraft/resource/AbstractFileResourcePack;<init>(Ljava/lang/String;Z)V
-
-
Method Details
-
parseMetadata
- Specified by:
parseMetadata
in interfaceResourcePack
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lajv;a(Lakh;)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
Lajr;a(Lakh;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
Lajv;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;
-
isAlwaysStable
public boolean isAlwaysStable()Returns whether the dynamic registry entries from this pack are always "stable"/not experimental.- Specified by:
isAlwaysStable
in interfaceResourcePack
- Returns:
- whether the dynamic registry entries from this pack are always "stable"/not experimental
- Mappings:
Namespace Name Mixin selector official b
Lajv;b()Z
intermediary method_45178
Lnet/minecraft/class_3262;method_45178()Z
named isAlwaysStable
Lnet/minecraft/resource/ResourcePack;isAlwaysStable()Z
-