Class ResourcePackManager

java.lang.Object
net.minecraft.resource.ResourcePackManager

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

    • providers

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

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

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

    • ResourcePackManager

      public ResourcePackManager(ResourcePackProvider[] providers)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/resource/ResourcePackManager;<init>([Lnet/minecraft/resource/ResourcePackProvider;)V
      intermediary <init> Lnet/minecraft/class_3283;<init>([Lnet/minecraft/class_3285;)V
      official <init> Lavg;<init>([Lavi;)V
  • Method Details

    • listPacks

      public static String listPacks(Collection<ResourcePackProfile> profiles)
      Mappings:
      Namespace Name Mixin selector
      named listPacks Lnet/minecraft/resource/ResourcePackManager;listPacks(Ljava/util/Collection;)Ljava/lang/String;
      intermediary method_59809 Lnet/minecraft/class_3283;method_59809(Ljava/util/Collection;)Ljava/lang/String;
      official a Lavg;a(Ljava/util/Collection;)Ljava/lang/String;
    • scanPacks

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

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

      public boolean hasOptionalProfilesEnabled()
      Mappings:
      Namespace Name Mixin selector
      named hasOptionalProfilesEnabled Lnet/minecraft/resource/ResourcePackManager;hasOptionalProfilesEnabled()Z
      intermediary method_63566 Lnet/minecraft/class_3283;method_63566()Z
      official b Lavg;b()Z
    • setEnabledProfiles

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

      public boolean enable(String profile)
      Mappings:
      Namespace Name Mixin selector
      named enable Lnet/minecraft/resource/ResourcePackManager;enable(Ljava/lang/String;)Z
      intermediary method_49427 Lnet/minecraft/class_3283;method_49427(Ljava/lang/String;)Z
      official a Lavg;a(Ljava/lang/String;)Z
    • disable

      public boolean disable(String profile)
      Mappings:
      Namespace Name Mixin selector
      named disable Lnet/minecraft/resource/ResourcePackManager;disable(Ljava/lang/String;)Z
      intermediary method_49428 Lnet/minecraft/class_3283;method_49428(Ljava/lang/String;)Z
      official b Lavg;b(Ljava/lang/String;)Z
    • buildEnabledProfiles

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

      private Stream<ResourcePackProfile> streamProfilesById(Collection<String> ids)
      Mappings:
      Namespace Name Mixin selector
      named streamProfilesById Lnet/minecraft/resource/ResourcePackManager;streamProfilesById(Ljava/util/Collection;)Ljava/util/stream/Stream;
      intermediary method_29209 Lnet/minecraft/class_3283;method_29209(Ljava/util/Collection;)Ljava/util/stream/Stream;
      official d Lavg;d(Ljava/util/Collection;)Ljava/util/stream/Stream;
    • getIds

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

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

      public Collection<String> getEnabledIds()
      Mappings:
      Namespace Name Mixin selector
      named getEnabledIds Lnet/minecraft/resource/ResourcePackManager;getEnabledIds()Ljava/util/Collection;
      intermediary method_29210 Lnet/minecraft/class_3283;method_29210()Ljava/util/Collection;
      official e Lavg;e()Ljava/util/Collection;
    • getRequestedFeatures

      public FeatureSet getRequestedFeatures()
      Mappings:
      Namespace Name Mixin selector
      named getRequestedFeatures Lnet/minecraft/resource/ResourcePackManager;getRequestedFeatures()Lnet/minecraft/resource/featuretoggle/FeatureSet;
      intermediary method_45278 Lnet/minecraft/class_3283;method_45278()Lnet/minecraft/class_7699;
      official f Lavg;f()Lcss;
    • getEnabledProfiles

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

      Mappings:
      Namespace Name Mixin selector
      named getProfile Lnet/minecraft/resource/ResourcePackManager;getProfile(Ljava/lang/String;)Lnet/minecraft/resource/ResourcePackProfile;
      intermediary method_14449 Lnet/minecraft/class_3283;method_14449(Ljava/lang/String;)Lnet/minecraft/class_3288;
      official c Lavg;c(Ljava/lang/String;)Lavd;
    • hasProfile

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

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