Interface IdentifiableResourceReloadListener

All Superinterfaces:
net.minecraft.resource.ResourceReloadListener
All Known Subinterfaces:
SimpleResourceReloadListener<T>, SimpleSynchronousResourceReloadListener

public interface IdentifiableResourceReloadListener
extends net.minecraft.resource.ResourceReloadListener
Interface for "identifiable" resource reload listeners.

"Identifiable" listeners have an unique identifier, which can be depended on, and can provide dependencies that they would like to see executed before themselves.

See Also:
ResourceReloadListenerKeys
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloadListener

    net.minecraft.resource.ResourceReloadListener.Synchronizer
  • Method Summary

    Modifier and Type Method Description
    default Collection<net.minecraft.util.Identifier> getFabricDependencies()  
    net.minecraft.util.Identifier getFabricId()  

    Methods inherited from interface net.minecraft.resource.ResourceReloadListener

    getName, reload
  • Method Details

    • getFabricId

      net.minecraft.util.Identifier getFabricId()
      Returns:
      The unique identifier of this listener.
    • getFabricDependencies

      default Collection<net.minecraft.util.Identifier> getFabricDependencies()
      Returns:
      The identifiers of listeners this listener expects to have been executed before itself. Please keep in mind that this only takes effect during the application stage!