Interface InvisibleResourceProvider


public interface InvisibleResourceProvider
A service used to provide resources that, for one reason or another, are not visible through the normal PrePackRepositories. Examples would be adding compatibility with mods that have their own strange resource injection systems. Should be provided as a service if this should always be available; otherwise, see ConditionalInvisibleResourceProvider.
  • Method Summary

    Modifier and Type
    Method
    Description
    getNamespaces(@NonNull net.minecraft.server.packs.PackType type)
     
    @Nullable net.minecraft.server.packs.resources.IoSupplier<InputStream>
    getResource(@NonNull net.minecraft.server.packs.PackType type, @NonNull net.minecraft.resources.ResourceLocation location)
     
    void
    listResources(@NonNull net.minecraft.server.packs.PackType type, @NonNull String namespace, @NonNull String path, @NonNull net.minecraft.server.packs.PackResources.ResourceOutput resourceOutput)
     
    default void
    reset(@NonNull net.minecraft.server.packs.PackType type)
     
  • Method Details

    • getResource

      @Nullable net.minecraft.server.packs.resources.IoSupplier<InputStream> getResource(@NonNull net.minecraft.server.packs.PackType type, @NonNull net.minecraft.resources.ResourceLocation location)
    • listResources

      void listResources(@NonNull net.minecraft.server.packs.PackType type, @NonNull String namespace, @NonNull String path, @NonNull net.minecraft.server.packs.PackResources.ResourceOutput resourceOutput)
    • getNamespaces

      Set<String> getNamespaces(@NonNull net.minecraft.server.packs.PackType type)
    • reset

      default void reset(@NonNull net.minecraft.server.packs.PackType type)