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 TypeMethodDescriptiongetNamespaces(@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) voidlistResources(@NonNull net.minecraft.server.packs.PackType type, @NonNull String namespace, @NonNull String path, @NonNull net.minecraft.server.packs.PackResources.ResourceOutput resourceOutput) default voidreset(@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
-
getNamespaces
-
reset
default void reset(@NonNull net.minecraft.server.packs.PackType type)
-