Class DefaultClientResourcePack

java.lang.Object
net.minecraft.resource.DefaultResourcePack
net.minecraft.client.resource.DefaultClientResourcePack
All Implemented Interfaces:
AutoCloseable, ResourceFactory, ResourcePack

@Environment(CLIENT) public class DefaultClientResourcePack extends DefaultResourcePack
Mappings:
Namespace Name
official exr
intermediary net/minecraft/class_1065
named net/minecraft/client/resource/DefaultClientResourcePack
  • Field Details

    • index

      private final ResourceIndex index
      Mappings:
      Namespace Name Mixin selector
      official g Lexr;g:Lexp;
      intermediary field_5291 Lnet/minecraft/class_1065;field_5291:Lnet/minecraft/class_1064;
      named index Lnet/minecraft/client/resource/DefaultClientResourcePack;index:Lnet/minecraft/client/resource/ResourceIndex;
  • Constructor Details

    • DefaultClientResourcePack

      public DefaultClientResourcePack(PackResourceMetadata metadata, ResourceIndex index)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lexr;<init>(Lada;Lexp;)V
      intermediary <init> Lnet/minecraft/class_1065;<init>(Lnet/minecraft/class_3272;Lnet/minecraft/class_1064;)V
      named <init> Lnet/minecraft/client/resource/DefaultClientResourcePack;<init>(Lnet/minecraft/resource/metadata/PackResourceMetadata;Lnet/minecraft/client/resource/ResourceIndex;)V
  • Method Details

    • findInputStream

      @Nullable protected @Nullable InputStream findInputStream(ResourceType type, Identifier id)
      Overrides:
      findInputStream in class DefaultResourcePack
      Mappings:
      Namespace Name Mixin selector
      official c Lacy;c(Lacw;Lww;)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;
    • contains

      public boolean contains(ResourceType type, Identifier id)
      Specified by:
      contains in interface ResourcePack
      Overrides:
      contains in class DefaultResourcePack
      Mappings:
      Namespace Name Mixin selector
      official b Lacv;b(Lacw;Lww;)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
    • getInputStream

      @Nullable protected @Nullable InputStream getInputStream(String path)
      Overrides:
      getInputStream in class DefaultResourcePack
      Mappings:
      Namespace Name Mixin selector
      official a Lacy;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;
    • findResources

      public Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)
      Specified by:
      findResources in interface ResourcePack
      Overrides:
      findResources in class DefaultResourcePack
      Mappings:
      Namespace Name Mixin selector
      official a Lacv;a(Lacw;Ljava/lang/String;Ljava/lang/String;ILjava/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;ILjava/util/function/Predicate;)Ljava/util/Collection;
      named findResources Lnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;ILjava/util/function/Predicate;)Ljava/util/Collection;