Provides resources to Minecraft, including resource access and provision.
"Data" as in "Data Packs" is considered resource as well.
Here is a quick overview on the resource access and provision APIs of Minecraft:
|Accesses binary data.
|Provides a resource given an
|Exposes more resource access in addition to being a
|The most common accessor to resources, acting during "reloads" to set up in-game contents.
This is usually implemented by mods using resources.
|Performs reloads and manages
ResourceReloaders in addition to being a
Usually held by the game engine, it may be provided by the modding APIs as well.
|Provides binary data based on queries.
They are usually single-use, created by
ResourcePackManager and provided
ReloadableResourceManager in each reload.
|A user-friendly, persistent form of
ResourcePack. Used to create resource
packs in reloads.
ResourcePackProfiles, so they are taken account of during reloads.
This is usually implemented by mods providing resources.
|Keeps track of
ResourcePackProviders and uses the profiles from the providers
ResourcePacks to send to
ReloadableResourceManagers in each reload.
In addition to these APIs, this package includes implementation details of the resource system.
InterfaceDescriptionA resource manager that has a reload mechanism.A resource of binary data.Provides resource access.Provides resource loading capabilities to Minecraft.A resource pack, providing resources to resource managers.A factory for resource pack profiles, somewhat resembling the constructor of
ResourcePackProfilebut allowing more customization.Represents a resource reload.A resource reloader performs actual reloading in its reload in a reloadable resource manager it is registered to.A synchronizer to indicate completion of a reloader's prepare stage and to allow start of the apply stage only if all reloaders have finished the prepare stage.A factory that creates a completable future for each reloader in the resource reload.A base resource reloader that does all its work in the apply executor, or the game engine's thread.
ClassDescriptionAn abstract implementation of resource reloader that reads JSON files into Gson representations in the prepare stage.An implementation of resource reload that includes an additional profiling summary for each reloader.The profiling summary for each reloader in the reload.Represents a resource pack in a
ResourcePackManager.A simple implementation of resource reload.A base resource reloader implementation that prepares an object in a single call (as opposed to in multiple concurrent tasks) and handles the prepared object in the apply stage.