Uses of Interface
net.minecraft.resource.ResourcePack
Packages that use ResourcePack
Package
Description
Provides resources to Minecraft, including resource access, provision, and reloading.
-
Uses of ResourcePack in net.minecraft.client.resource
Methods in net.minecraft.client.resource with parameters of type ResourcePackModifier and TypeMethodDescriptionprotected @Nullable ResourcePackProfile
DefaultClientResourcePackProvider.createDefault
(ResourcePack pack) Method parameters in net.minecraft.client.resource with type arguments of type ResourcePackModifier and TypeMethodDescriptionvoid
ResourceReloadLogger.reload
(ResourceReloadLogger.ReloadReason reason, List<ResourcePack> packs) -
Uses of ResourcePack in net.minecraft.client.resource.language
Method parameters in net.minecraft.client.resource.language with type arguments of type ResourcePackModifier and TypeMethodDescriptionprivate static Map
<String, LanguageDefinition> LanguageManager.loadAvailableLanguages
(Stream<ResourcePack> packs) -
Uses of ResourcePack in net.minecraft.client.util
Methods in net.minecraft.client.util with parameters of type ResourcePackModifier and TypeMethodDescriptionprivate InputSupplier
<InputStream> Icons.getIcon
(ResourcePack resourcePack, String fileName) Icons.getIcons
(ResourcePack resourcePack) Icons.getMacIcon
(ResourcePack resourcePack) void
Window.setIcon
(ResourcePack resourcePack, Icons icons) -
Uses of ResourcePack in net.minecraft.resource
Classes in net.minecraft.resource that implement ResourcePackModifier and TypeClassDescriptionclass
class
class
class
class
Fields in net.minecraft.resource declared as ResourcePackModifier and TypeFieldDescriptionprivate final ResourcePack
OverlayResourcePack.base
private final ResourcePack
Resource.pack
private final ResourcePack
NamespaceResourceManager.FileSource.sourcePack
The field for thesourcePack
record component.private final @Nullable ResourcePack
NamespaceResourceManager.FilterablePack.underlying
The field for theunderlying
record component.Fields in net.minecraft.resource with type parameters of type ResourcePackModifier and TypeFieldDescriptionprivate final Map
<ResourcePack, InputSupplier<InputStream>> NamespaceResourceManager.EntryList.metaSources
The field for themetaSources
record component.private final List
<ResourcePack> OverlayResourcePack.overlaysAndBase
private final List
<ResourcePack> LifecycledResourceManagerImpl.packs
Methods in net.minecraft.resource that return ResourcePackModifier and TypeMethodDescriptionResourcePackProfile.createResourcePack()
Resource.getPack()
DirectoryResourcePack.DirectoryBackedFactory.open
(ResourcePackInfo info) ResourcePackProfile.PackFactory.open
(ResourcePackInfo info) ZipResourcePack.ZipBackedFactory.open
(ResourcePackInfo info) DirectoryResourcePack.DirectoryBackedFactory.openWithOverlays
(ResourcePackInfo info, ResourcePackProfile.Metadata metadata) ResourcePackProfile.PackFactory.openWithOverlays
(ResourcePackInfo info, ResourcePackProfile.Metadata metadata) ZipResourcePack.ZipBackedFactory.openWithOverlays
(ResourcePackInfo info, ResourcePackProfile.Metadata metadata) NamespaceResourceManager.FileSource.sourcePack()
Returns the value of thesourcePack
record component.NamespaceResourceManager.FilterablePack.underlying()
Returns the value of theunderlying
record component.Methods in net.minecraft.resource that return types with arguments of type ResourcePackModifier and TypeMethodDescriptionResourcePackManager.createResourcePacks()
NamespaceResourceManager.EntryList.metaSources()
Returns the value of themetaSources
record component.LifecycledResourceManagerImpl.streamResourcePacks()
Gets a stream of loaded resource packs in increasing order of priority.NamespaceResourceManager.streamResourcePacks()
Gets a stream of loaded resource packs in increasing order of priority.ReloadableResourceManagerImpl.streamResourcePacks()
Gets a stream of loaded resource packs in increasing order of priority.ResourceManager.Empty.streamResourcePacks()
Gets a stream of loaded resource packs in increasing order of priority.ResourceManager.streamResourcePacks()
Gets a stream of loaded resource packs in increasing order of priority.Methods in net.minecraft.resource with parameters of type ResourcePackModifier and TypeMethodDescriptionprivate void
NamespaceResourceManager.addPack
(String id, @Nullable ResourcePack underlyingPack, @Nullable Predicate<Identifier> filter) void
NamespaceResourceManager.addPack
(ResourcePack pack) void
NamespaceResourceManager.addPack
(ResourcePack pack, Predicate<Identifier> filter) protected @Nullable ResourcePackProfile
VanillaDataPackProvider.createDefault
(ResourcePack pack) protected abstract @Nullable ResourcePackProfile
VanillaResourcePackProvider.createDefault
(ResourcePack pack) protected static ResourcePackProfile.PackFactory
VanillaResourcePackProvider.createPackFactory
(ResourcePack pack) private static Resource
NamespaceResourceManager.createResource
(ResourcePack pack, Identifier id, InputSupplier<InputStream> supplier, InputSupplier<ResourceMetadata> metadataSupplier) private @Nullable ResourceFilter
LifecycledResourceManagerImpl.parseResourceFilter
(ResourcePack pack) private static InputSupplier
<InputStream> NamespaceResourceManager.wrapForDebug
(Identifier id, ResourcePack pack, InputSupplier<InputStream> supplier) Method parameters in net.minecraft.resource with type arguments of type ResourcePackModifier and TypeMethodDescriptionReloadableResourceManagerImpl.reload
(Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage, List<ResourcePack> packs) Swaps the active resource manager with another one backed by the givenpacks
and start a reload.Constructors in net.minecraft.resource with parameters of type ResourcePackModifierConstructorDescription(package private)
FileSource
(ResourcePack resourcePack, InputSupplier<InputStream> inputSupplier) (package private)
FilterablePack
(String string, @Nullable ResourcePack resourcePack, @Nullable Predicate<Identifier> predicate) OverlayResourcePack
(ResourcePack base, List<ResourcePack> overlays) Resource
(ResourcePack pack, InputSupplier<InputStream> inputSupplier) Resource
(ResourcePack pack, InputSupplier<InputStream> inputSupplier, InputSupplier<ResourceMetadata> metadataSupplier) Constructor parameters in net.minecraft.resource with type arguments of type ResourcePackModifierConstructorDescriptionprivate
EntryList
(Identifier identifier, Identifier identifier2, List<NamespaceResourceManager.FileSource> list, Map<ResourcePack, InputSupplier<InputStream>> map) LifecycledResourceManagerImpl
(ResourceType type, List<ResourcePack> packs) OverlayResourcePack
(ResourcePack base, List<ResourcePack> overlays)