Package net.minecraft.resource
Class DirectoryResourcePack
java.lang.Object
net.minecraft.resource.AbstractFileResourcePack
net.minecraft.resource.DirectoryResourcePack
- All Implemented Interfaces:
AutoCloseable,ResourcePack
- Mappings:
Namespace Name named net/minecraft/resource/DirectoryResourcePackintermediary net/minecraft/class_3259official aud
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.resource.ResourcePack
ResourcePack.ResultConsumer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Loggerprivate final Pathprivate static final JoinerFields inherited from interface net.minecraft.resource.ResourcePack
METADATA_PATH_SUFFIX, PACK_METADATA_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static voidfindResources(String namespace, Path path, List<String> prefixSegments, ResourcePack.ResultConsumer consumer) voidfindResources(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer) getNamespaces(ResourceType type) static booleanisValidPath(Path path) private static @Nullable InputSupplier<InputStream> open(ResourceType type, Identifier id) static @Nullable InputSupplier<InputStream> open(Identifier id, Path path) Methods inherited from class net.minecraft.resource.AbstractFileResourcePack
getInfo, parseMetadata, parseMetadataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resource.ResourcePack
getId, getKnownPackInfo
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/resource/DirectoryResourcePack;LOGGER:Lorg/slf4j/Logger;intermediary field_14187Lnet/minecraft/class_3259;field_14187:Lorg/slf4j/Logger;official cLaud;c:Lorg/slf4j/Logger;
-
SEPARATOR_JOINER
- Mappings:
Namespace Name Mixin selector named SEPARATOR_JOINERLnet/minecraft/resource/DirectoryResourcePack;SEPARATOR_JOINER:Lcom/google/common/base/Joiner;intermediary field_40000Lnet/minecraft/class_3259;field_40000:Lcom/google/common/base/Joiner;official dLaud;d:Lcom/google/common/base/Joiner;
-
root
- Mappings:
Namespace Name Mixin selector named rootLnet/minecraft/resource/DirectoryResourcePack;root:Ljava/nio/file/Path;intermediary field_40001Lnet/minecraft/class_3259;field_40001:Ljava/nio/file/Path;official eLaud;e:Ljava/nio/file/Path;
-
-
Constructor Details
-
DirectoryResourcePack
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/resource/DirectoryResourcePack;<init>(Lnet/minecraft/resource/ResourcePackInfo;Ljava/nio/file/Path;)Vintermediary <init>Lnet/minecraft/class_3259;<init>(Lnet/minecraft/class_9224;Ljava/nio/file/Path;)Vofficial <init>Laud;<init>(Latz;Ljava/nio/file/Path;)V
-
-
Method Details
-
openRoot
- Mappings:
Namespace Name Mixin selector named openRootLnet/minecraft/resource/ResourcePack;openRoot([Ljava/lang/String;)Lnet/minecraft/resource/InputSupplier;intermediary method_14410Lnet/minecraft/class_3262;method_14410([Ljava/lang/String;)Lnet/minecraft/class_7367;official aLaua;a([Ljava/lang/String;)Lavg;
-
isValidPath
- Mappings:
Namespace Name Mixin selector named isValidPathLnet/minecraft/resource/DirectoryResourcePack;isValidPath(Ljava/nio/file/Path;)Zintermediary method_14402Lnet/minecraft/class_3259;method_14402(Ljava/nio/file/Path;)Zofficial aLaud;a(Ljava/nio/file/Path;)Z
-
open
- Mappings:
Namespace Name Mixin selector named openLnet/minecraft/resource/ResourcePack;open(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Lnet/minecraft/resource/InputSupplier;intermediary method_14405Lnet/minecraft/class_3262;method_14405(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Lnet/minecraft/class_7367;official aLaua;a(Lauc;Lalr;)Lavg;
-
open
- Mappings:
Namespace Name Mixin selector named openLnet/minecraft/resource/DirectoryResourcePack;open(Lnet/minecraft/util/Identifier;Ljava/nio/file/Path;)Lnet/minecraft/resource/InputSupplier;intermediary method_45180Lnet/minecraft/class_3259;method_45180(Lnet/minecraft/class_2960;Ljava/nio/file/Path;)Lnet/minecraft/class_7367;official aLaud;a(Lalr;Ljava/nio/file/Path;)Lavg;
-
open
- Mappings:
Namespace Name Mixin selector named openLnet/minecraft/resource/DirectoryResourcePack;open(Ljava/nio/file/Path;)Lnet/minecraft/resource/InputSupplier;intermediary method_45187Lnet/minecraft/class_3259;method_45187(Ljava/nio/file/Path;)Lnet/minecraft/class_7367;official bLaud;b(Ljava/nio/file/Path;)Lavg;
-
findResources
public void findResources(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer) - Mappings:
Namespace Name Mixin selector named findResourcesLnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/resource/ResourcePack$ResultConsumer;)Vintermediary method_14408Lnet/minecraft/class_3262;method_14408(Lnet/minecraft/class_3264;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/class_3262$class_7664;)Vofficial aLaua;a(Lauc;Ljava/lang/String;Ljava/lang/String;Laua$a;)V
-
findResources
public static void findResources(String namespace, Path path, List<String> prefixSegments, ResourcePack.ResultConsumer consumer) - Mappings:
Namespace Name Mixin selector named findResourcesLnet/minecraft/resource/DirectoryResourcePack;findResources(Ljava/lang/String;Ljava/nio/file/Path;Ljava/util/List;Lnet/minecraft/resource/ResourcePack$ResultConsumer;)Vintermediary method_45183Lnet/minecraft/class_3259;method_45183(Ljava/lang/String;Ljava/nio/file/Path;Ljava/util/List;Lnet/minecraft/class_3262$class_7664;)Vofficial aLaud;a(Ljava/lang/String;Ljava/nio/file/Path;Ljava/util/List;Laua$a;)V
-
getNamespaces
- Mappings:
Namespace Name Mixin selector named getNamespacesLnet/minecraft/resource/ResourcePack;getNamespaces(Lnet/minecraft/resource/ResourceType;)Ljava/util/Set;intermediary method_14406Lnet/minecraft/class_3262;method_14406(Lnet/minecraft/class_3264;)Ljava/util/Set;official aLaua;a(Lauc;)Ljava/util/Set;
-
close
public void close()
-