Class ResourcePackManager

java.lang.Object
net.minecraft.resource.ResourcePackManager
All Implemented Interfaces:
AutoCloseable

public class ResourcePackManager extends Object implements AutoCloseable
A resource pack manager manages a list of ResourcePackProfiles and builds a list of resource packs when the resource manager reloads.
Mappings:
Namespace Name
official aez
intermediary net/minecraft/class_3283
named net/minecraft/resource/ResourcePackManager
  • Field Details

    • providers

      private final Set<ResourcePackProvider> providers
      Mappings:
      Namespace Name Mixin selector
      official a Laez;a:Ljava/util/Set;
      intermediary field_14227 Lnet/minecraft/class_3283;field_14227:Ljava/util/Set;
      named providers Lnet/minecraft/resource/ResourcePackManager;providers:Ljava/util/Set;
    • profiles

      private Map<String,ResourcePackProfile> profiles
      Mappings:
      Namespace Name Mixin selector
      official b Laez;b:Ljava/util/Map;
      intermediary field_14226 Lnet/minecraft/class_3283;field_14226:Ljava/util/Map;
      named profiles Lnet/minecraft/resource/ResourcePackManager;profiles:Ljava/util/Map;
    • enabled

      private List<ResourcePackProfile> enabled
      Mappings:
      Namespace Name Mixin selector
      official c Laez;c:Ljava/util/List;
      intermediary field_14225 Lnet/minecraft/class_3283;field_14225:Ljava/util/List;
      named enabled Lnet/minecraft/resource/ResourcePackManager;enabled:Ljava/util/List;
    • profileFactory

      private final ResourcePackProfile.Factory profileFactory
      Mappings:
      Namespace Name Mixin selector
      official d Laez;d:Laex$a;
      intermediary field_14228 Lnet/minecraft/class_3283;field_14228:Lnet/minecraft/class_3288$class_5351;
      named profileFactory Lnet/minecraft/resource/ResourcePackManager;profileFactory:Lnet/minecraft/resource/ResourcePackProfile$Factory;
  • Constructor Details

    • ResourcePackManager

      public ResourcePackManager(ResourcePackProfile.Factory profileFactory, ResourcePackProvider[] providers)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laez;<init>(Laex$a;[Lafb;)V
      intermediary <init> Lnet/minecraft/class_3283;<init>(Lnet/minecraft/class_3288$class_5351;[Lnet/minecraft/class_3285;)V
      named <init> Lnet/minecraft/resource/ResourcePackManager;<init>(Lnet/minecraft/resource/ResourcePackProfile$Factory;[Lnet/minecraft/resource/ResourcePackProvider;)V
    • ResourcePackManager

      public ResourcePackManager(ResourceType type, ResourcePackProvider[] providers)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laez;<init>(Laen;[Lafb;)V
      intermediary <init> Lnet/minecraft/class_3283;<init>(Lnet/minecraft/class_3264;[Lnet/minecraft/class_3285;)V
      named <init> Lnet/minecraft/resource/ResourcePackManager;<init>(Lnet/minecraft/resource/ResourceType;[Lnet/minecraft/resource/ResourcePackProvider;)V
  • Method Details

    • scanPacks

      public void scanPacks()
      Mappings:
      Namespace Name Mixin selector
      official a Laez;a()V
      intermediary method_14445 Lnet/minecraft/class_3283;method_14445()V
      named scanPacks Lnet/minecraft/resource/ResourcePackManager;scanPacks()V
    • providePackProfiles

      private Map<String,ResourcePackProfile> providePackProfiles()
      Mappings:
      Namespace Name Mixin selector
      official g Laez;g()Ljava/util/Map;
      intermediary method_29212 Lnet/minecraft/class_3283;method_29212()Ljava/util/Map;
      named providePackProfiles Lnet/minecraft/resource/ResourcePackManager;providePackProfiles()Ljava/util/Map;
    • setEnabledProfiles

      public void setEnabledProfiles(Collection<String> enabled)
      Mappings:
      Namespace Name Mixin selector
      official a Laez;a(Ljava/util/Collection;)V
      intermediary method_14447 Lnet/minecraft/class_3283;method_14447(Ljava/util/Collection;)V
      named setEnabledProfiles Lnet/minecraft/resource/ResourcePackManager;setEnabledProfiles(Ljava/util/Collection;)V
    • buildEnabledProfiles

      private List<ResourcePackProfile> buildEnabledProfiles(Collection<String> enabledNames)
      Mappings:
      Namespace Name Mixin selector
      official b Laez;b(Ljava/util/Collection;)Ljava/util/List;
      intermediary method_29208 Lnet/minecraft/class_3283;method_29208(Ljava/util/Collection;)Ljava/util/List;
      named buildEnabledProfiles Lnet/minecraft/resource/ResourcePackManager;buildEnabledProfiles(Ljava/util/Collection;)Ljava/util/List;
    • streamProfilesByName

      private Stream<ResourcePackProfile> streamProfilesByName(Collection<String> names)
      Mappings:
      Namespace Name Mixin selector
      official c Laez;c(Ljava/util/Collection;)Ljava/util/stream/Stream;
      intermediary method_29209 Lnet/minecraft/class_3283;method_29209(Ljava/util/Collection;)Ljava/util/stream/Stream;
      named streamProfilesByName Lnet/minecraft/resource/ResourcePackManager;streamProfilesByName(Ljava/util/Collection;)Ljava/util/stream/Stream;
    • getNames

      public Collection<String> getNames()
      Mappings:
      Namespace Name Mixin selector
      official b Laez;b()Ljava/util/Collection;
      intermediary method_29206 Lnet/minecraft/class_3283;method_29206()Ljava/util/Collection;
      named getNames Lnet/minecraft/resource/ResourcePackManager;getNames()Ljava/util/Collection;
    • getProfiles

      public Collection<ResourcePackProfile> getProfiles()
      Mappings:
      Namespace Name Mixin selector
      official c Laez;c()Ljava/util/Collection;
      intermediary method_14441 Lnet/minecraft/class_3283;method_14441()Ljava/util/Collection;
      named getProfiles Lnet/minecraft/resource/ResourcePackManager;getProfiles()Ljava/util/Collection;
    • getEnabledNames

      public Collection<String> getEnabledNames()
      Mappings:
      Namespace Name Mixin selector
      official d Laez;d()Ljava/util/Collection;
      intermediary method_29210 Lnet/minecraft/class_3283;method_29210()Ljava/util/Collection;
      named getEnabledNames Lnet/minecraft/resource/ResourcePackManager;getEnabledNames()Ljava/util/Collection;
    • getEnabledProfiles

      public Collection<ResourcePackProfile> getEnabledProfiles()
      Mappings:
      Namespace Name Mixin selector
      official e Laez;e()Ljava/util/Collection;
      intermediary method_14444 Lnet/minecraft/class_3283;method_14444()Ljava/util/Collection;
      named getEnabledProfiles Lnet/minecraft/resource/ResourcePackManager;getEnabledProfiles()Ljava/util/Collection;
    • getProfile

      @Nullable public @Nullable ResourcePackProfile getProfile(String name)
      Mappings:
      Namespace Name Mixin selector
      official a Laez;a(Ljava/lang/String;)Laex;
      intermediary method_14449 Lnet/minecraft/class_3283;method_14449(Ljava/lang/String;)Lnet/minecraft/class_3288;
      named getProfile Lnet/minecraft/resource/ResourcePackManager;getProfile(Ljava/lang/String;)Lnet/minecraft/resource/ResourcePackProfile;
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • hasProfile

      public boolean hasProfile(String name)
      Mappings:
      Namespace Name Mixin selector
      official b Laez;b(Ljava/lang/String;)Z
      intermediary method_29207 Lnet/minecraft/class_3283;method_29207(Ljava/lang/String;)Z
      named hasProfile Lnet/minecraft/resource/ResourcePackManager;hasProfile(Ljava/lang/String;)Z
    • createResourcePacks

      public List<ResourcePack> createResourcePacks()
      Mappings:
      Namespace Name Mixin selector
      official f Laez;f()Ljava/util/List;
      intermediary method_29211 Lnet/minecraft/class_3283;method_29211()Ljava/util/List;
      named createResourcePacks Lnet/minecraft/resource/ResourcePackManager;createResourcePacks()Ljava/util/List;