Package net.minecraft.resource
Class DefaultResourcePack
java.lang.Object
net.minecraft.resource.DefaultResourcePack
- All Implemented Interfaces:
AutoCloseable
,ResourcePack
- Direct Known Subclasses:
DefaultClientResourcePack
- Mappings:
Namespace Name official agw
intermediary net/minecraft/class_3268
named net/minecraft/resource/DefaultResourcePack
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
final PackResourceMetadata
static Class<?>
private static final Map<ResourceType,
Path> Fields inherited from interface net.minecraft.resource.ResourcePack
METADATA_PATH_SUFFIX, PACK_METADATA_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private static void
collectIdentifiers
(Collection<Identifier> results, String namespace, Path root, String prefix, Predicate<Identifier> allowedPathPredicate) boolean
contains
(ResourceType type, Identifier id) protected @Nullable InputStream
findInputStream
(ResourceType type, Identifier id) findResources
(ResourceType type, String namespace, String prefix, Predicate<Identifier> allowedPathPredicate) protected @Nullable InputStream
getInputStream
(String path) getName()
getNamespaces
(ResourceType type) private static Path
private static String
getPath
(ResourceType type, Identifier id) private static boolean
isValidUrl
(String fileName, @Nullable URL url) open
(ResourceType type, Identifier id) <T> T
parseMetadata
(ResourceMetadataReader<T> metaReader)
-
Field Details
-
resourcePath
- Mappings:
Namespace Name Mixin selector official a
Lagw;a:Ljava/nio/file/Path;
intermediary field_14196
Lnet/minecraft/class_3268;field_14196:Ljava/nio/file/Path;
named resourcePath
Lnet/minecraft/resource/DefaultResourcePack;resourcePath:Ljava/nio/file/Path;
-
LOGGER
private static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official g
Lagw;g:Lorg/slf4j/Logger;
intermediary field_14195
Lnet/minecraft/class_3268;field_14195:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/resource/DefaultResourcePack;LOGGER:Lorg/slf4j/Logger;
-
resourceClass
- Mappings:
Namespace Name Mixin selector official b
Lagw;b:Ljava/lang/Class;
intermediary field_14194
Lnet/minecraft/class_3268;field_14194:Ljava/lang/Class;
named resourceClass
Lnet/minecraft/resource/DefaultResourcePack;resourceClass:Ljava/lang/Class;
-
TYPE_TO_FILE_SYSTEM
- Mappings:
Namespace Name Mixin selector official h
Lagw;h:Ljava/util/Map;
intermediary field_17917
Lnet/minecraft/class_3268;field_17917:Ljava/util/Map;
named TYPE_TO_FILE_SYSTEM
Lnet/minecraft/resource/DefaultResourcePack;TYPE_TO_FILE_SYSTEM:Ljava/util/Map;
-
metadata
- Mappings:
Namespace Name Mixin selector official e
Lagw;e:Lagy;
intermediary field_26938
Lnet/minecraft/class_3268;field_26938:Lnet/minecraft/class_3272;
named metadata
Lnet/minecraft/resource/DefaultResourcePack;metadata:Lnet/minecraft/resource/metadata/PackResourceMetadata;
-
namespaces
- Mappings:
Namespace Name Mixin selector official f
Lagw;f:Ljava/util/Set;
intermediary field_14193
Lnet/minecraft/class_3268;field_14193:Ljava/util/Set;
named namespaces
Lnet/minecraft/resource/DefaultResourcePack;namespaces:Ljava/util/Set;
-
-
Constructor Details
-
DefaultResourcePack
- Mappings:
Namespace Name Mixin selector official <init>
Lagw;<init>(Lagy;[Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_3268;<init>(Lnet/minecraft/class_3272;[Ljava/lang/String;)V
named <init>
Lnet/minecraft/resource/DefaultResourcePack;<init>(Lnet/minecraft/resource/metadata/PackResourceMetadata;[Ljava/lang/String;)V
-
-
Method Details
-
getPath
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lagw;a(Ljava/net/URI;)Ljava/nio/file/Path;
intermediary method_37454
Lnet/minecraft/class_3268;method_37454(Ljava/net/URI;)Ljava/nio/file/Path;
named getPath
Lnet/minecraft/resource/DefaultResourcePack;getPath(Ljava/net/URI;)Ljava/nio/file/Path;
-
openRoot
- Specified by:
openRoot
in interfaceResourcePack
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Lagt;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;
-
open
- Specified by:
open
in interfaceResourcePack
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lagt;a(Lagu;Laaj;)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;
-
findResources
public Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, Predicate<Identifier> allowedPathPredicate) - Specified by:
findResources
in interfaceResourcePack
- Mappings:
Namespace Name Mixin selector official a
Lagt;a(Lagu;Ljava/lang/String;Ljava/lang/String;Ljava/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;Ljava/util/function/Predicate;)Ljava/util/Collection;
named findResources
Lnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/Collection;
-
collectIdentifiers
private static void collectIdentifiers(Collection<Identifier> results, String namespace, Path root, String prefix, Predicate<Identifier> allowedPathPredicate) throws IOException - Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lagw;a(Ljava/util/Collection;Ljava/lang/String;Ljava/nio/file/Path;Ljava/lang/String;Ljava/util/function/Predicate;)V
intermediary method_14418
Lnet/minecraft/class_3268;method_14418(Ljava/util/Collection;Ljava/lang/String;Ljava/nio/file/Path;Ljava/lang/String;Ljava/util/function/Predicate;)V
named collectIdentifiers
Lnet/minecraft/resource/DefaultResourcePack;collectIdentifiers(Ljava/util/Collection;Ljava/lang/String;Ljava/nio/file/Path;Ljava/lang/String;Ljava/util/function/Predicate;)V
-
findInputStream
- Mappings:
Namespace Name Mixin selector official c
Lagw;c(Lagu;Laaj;)Ljava/io/InputStream;
intermediary method_14416
Lnet/minecraft/class_3268;method_14416(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Ljava/io/InputStream;
named findInputStream
Lnet/minecraft/resource/DefaultResourcePack;findInputStream(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Ljava/io/InputStream;
-
getPath
- Mappings:
Namespace Name Mixin selector official d
Lagw;d(Lagu;Laaj;)Ljava/lang/String;
intermediary method_20729
Lnet/minecraft/class_3268;method_20729(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Ljava/lang/String;
named getPath
Lnet/minecraft/resource/DefaultResourcePack;getPath(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Ljava/lang/String;
-
isValidUrl
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lagw;a(Ljava/lang/String;Ljava/net/URL;)Z
intermediary method_20728
Lnet/minecraft/class_3268;method_20728(Ljava/lang/String;Ljava/net/URL;)Z
named isValidUrl
Lnet/minecraft/resource/DefaultResourcePack;isValidUrl(Ljava/lang/String;Ljava/net/URL;)Z
-
getInputStream
- Mappings:
Namespace Name Mixin selector official a
Lagw;a(Ljava/lang/String;)Ljava/io/InputStream;
intermediary method_14417
Lnet/minecraft/class_3268;method_14417(Ljava/lang/String;)Ljava/io/InputStream;
named getInputStream
Lnet/minecraft/resource/DefaultResourcePack;getInputStream(Ljava/lang/String;)Ljava/io/InputStream;
-
contains
- Specified by:
contains
in interfaceResourcePack
- Mappings:
Namespace Name Mixin selector official b
Lagt;b(Lagu;Laaj;)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
-
getNamespaces
- Specified by:
getNamespaces
in interfaceResourcePack
- Mappings:
Namespace Name Mixin selector official a
Lagt;a(Lagu;)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;
-
parseMetadata
- Specified by:
parseMetadata
in interfaceResourcePack
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lagt;a(Lagx;)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;
-
getName
- Specified by:
getName
in interfaceResourcePack
- Mappings:
Namespace Name Mixin selector official a
Lagt;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;
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceResourcePack
-
getFactory
- Mappings:
Namespace Name Mixin selector official b
Lagw;b()Lahx;
intermediary method_43032
Lnet/minecraft/class_3268;method_43032()Lnet/minecraft/class_5912;
named getFactory
Lnet/minecraft/resource/DefaultResourcePack;getFactory()Lnet/minecraft/resource/ResourceFactory;
-