Class ReloadableResourceManagerImpl

java.lang.Object
net.minecraft.resource.ReloadableResourceManagerImpl
All Implemented Interfaces:
ReloadableResourceManager, ResourceManager

@Environment(CLIENT)
public class ReloadableResourceManagerImpl
extends Object
implements ReloadableResourceManager
Mappings:
Namespace Name
official bnn
intermediary net/minecraft/class_1264
named net/minecraft/resource/ReloadableResourceManagerImpl
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lbnn;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_5261 Lnet/minecraft/class_1264;field_5261:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/resource/ReloadableResourceManagerImpl;LOGGER:Lorg/apache/logging/log4j/Logger;
    • JOINER

      private static final Joiner JOINER
      Mappings:
      Namespace Name Mixin selector
      official b Lbnn;b:Lcom/google/common/base/Joiner;
      intermediary field_5262 Lnet/minecraft/class_1264;field_5262:Lcom/google/common/base/Joiner;
      named JOINER Lnet/minecraft/resource/ReloadableResourceManagerImpl;JOINER:Lcom/google/common/base/Joiner;
    • fallbackManagers

      private final Map<String,​FallbackResourceManager> fallbackManagers
      Mappings:
      Namespace Name Mixin selector
      official c Lbnn;c:Ljava/util/Map;
      intermediary field_5263 Lnet/minecraft/class_1264;field_5263:Ljava/util/Map;
      named fallbackManagers Lnet/minecraft/resource/ReloadableResourceManagerImpl;fallbackManagers:Ljava/util/Map;
    • listeners

      private final List<ResourceReloadListener> listeners
      Mappings:
      Namespace Name Mixin selector
      official d Lbnn;d:Ljava/util/List;
      intermediary field_5264 Lnet/minecraft/class_1264;field_5264:Ljava/util/List;
      named listeners Lnet/minecraft/resource/ReloadableResourceManagerImpl;listeners:Ljava/util/List;
    • namespaces

      private final Set<String> namespaces
      Mappings:
      Namespace Name Mixin selector
      official e Lbnn;e:Ljava/util/Set;
      intermediary field_5265 Lnet/minecraft/class_1264;field_5265:Ljava/util/Set;
      named namespaces Lnet/minecraft/resource/ReloadableResourceManagerImpl;namespaces:Ljava/util/Set;
    • metaSerializer

      private final MetadataSerializer metaSerializer
      Mappings:
      Namespace Name Mixin selector
      official f Lbnn;f:Lbny;
      intermediary field_5266 Lnet/minecraft/class_1264;field_5266:Lnet/minecraft/class_1275;
      named metaSerializer Lnet/minecraft/resource/ReloadableResourceManagerImpl;metaSerializer:Lnet/minecraft/util/MetadataSerializer;
  • Constructor Details

    • ReloadableResourceManagerImpl

      public ReloadableResourceManagerImpl​(MetadataSerializer metaSerializer)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbnn;<init>(Lbny;)V
      intermediary <init> Lnet/minecraft/class_1264;<init>(Lnet/minecraft/class_1275;)V
      named <init> Lnet/minecraft/resource/ReloadableResourceManagerImpl;<init>(Lnet/minecraft/util/MetadataSerializer;)V
  • Method Details

    • add

      public void add​(ResourcePack pack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbnn;a(Lbnk;)V
      intermediary method_4392 Lnet/minecraft/class_1264;method_4392(Lnet/minecraft/class_1260;)V
      named add Lnet/minecraft/resource/ReloadableResourceManagerImpl;add(Lnet/minecraft/resource/ResourcePack;)V
    • getAllNamespaces

      public Set<String> getAllNamespaces()
      Specified by:
      getAllNamespaces in interface ResourceManager
      Mappings:
      Namespace Name Mixin selector
      official a Lbni;a()Ljava/util/Set;
      intermediary method_4363 Lnet/minecraft/class_1258;method_4363()Ljava/util/Set;
      named getAllNamespaces Lnet/minecraft/resource/ResourceManager;getAllNamespaces()Ljava/util/Set;
    • getResource

      public Resource getResource​(Identifier id) throws IOException
      Specified by:
      getResource in interface ResourceManager
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lbni;a(Ljy;)Lbnh;
      intermediary method_4364 Lnet/minecraft/class_1258;method_4364(Lnet/minecraft/class_1605;)Lnet/minecraft/class_1257;
      named getResource Lnet/minecraft/resource/ResourceManager;getResource(Lnet/minecraft/util/Identifier;)Lnet/minecraft/resource/Resource;
    • getAllResources

      public List<Resource> getAllResources​(Identifier id) throws IOException
      Specified by:
      getAllResources in interface ResourceManager
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lbni;b(Ljy;)Ljava/util/List;
      intermediary method_4365 Lnet/minecraft/class_1258;method_4365(Lnet/minecraft/class_1605;)Ljava/util/List;
      named getAllResources Lnet/minecraft/resource/ResourceManager;getAllResources(Lnet/minecraft/util/Identifier;)Ljava/util/List;
    • clear

      private void clear()
      Mappings:
      Namespace Name Mixin selector
      official b Lbnn;b()V
      intermediary method_4393 Lnet/minecraft/class_1264;method_4393()V
      named clear Lnet/minecraft/resource/ReloadableResourceManagerImpl;clear()V
    • reload

      public void reload​(List<ResourcePack> resourcePacks)
      Specified by:
      reload in interface ReloadableResourceManager
      Mappings:
      Namespace Name Mixin selector
      official a Lbng;a(Ljava/util/List;)V
      intermediary method_4357 Lnet/minecraft/class_1256;method_4357(Ljava/util/List;)V
      named reload Lnet/minecraft/resource/ReloadableResourceManager;reload(Ljava/util/List;)V
    • registerListener

      public void registerListener​(ResourceReloadListener listener)
      Specified by:
      registerListener in interface ReloadableResourceManager
      Mappings:
      Namespace Name Mixin selector
      official a Lbng;a(Lbnj;)V
      intermediary method_4356 Lnet/minecraft/class_1256;method_4356(Lnet/minecraft/class_1259;)V
      named registerListener Lnet/minecraft/resource/ReloadableResourceManager;registerListener(Lnet/minecraft/resource/ResourceReloadListener;)V
    • notifyListeners

      private void notifyListeners()
      Mappings:
      Namespace Name Mixin selector
      official c Lbnn;c()V
      intermediary method_4394 Lnet/minecraft/class_1264;method_4394()V
      named notifyListeners Lnet/minecraft/resource/ReloadableResourceManagerImpl;notifyListeners()V