Interface VeilResourceManager

All Known Implementing Classes:
VeilResourceManagerImpl

public interface VeilResourceManager
Client-side resource manager implementation that supports server-sided resources on the client side.
This is mainly used by the Veil resource API to view and edit resources in mods.
Since:
1.0.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.server.packs.resources.ResourceManager
     
    get()
     
    default @Nullable net.minecraft.server.packs.resources.ResourceMetadata
    getResourceMetadata(String namespace, String path)
    Searches for veil resource metadata by location.
    default @Nullable net.minecraft.server.packs.resources.ResourceMetadata
    getResourceMetadata(net.minecraft.resources.ResourceLocation location)
    Searches for veil resource metadata by location.
    @Nullable VeilResource<?>
    getVeilResource(String namespace, String path)
    Searches for a veil resource by namespace and path.
    default @Nullable VeilResource<?>
    getVeilResource(net.minecraft.resources.ResourceLocation location)
    Searches for a veil resource by location.
    default net.minecraft.server.packs.resources.ResourceManager
    Retrieves the correct resource manager for the specified resource.
    net.minecraft.server.packs.resources.ResourceManager
     
  • Method Details

    • get

      static VeilResourceManager get()
      Returns:
      The resource manager instance for the client
      Since:
      1.3.0
    • resources

      default net.minecraft.server.packs.resources.ResourceManager resources(VeilResourceInfo resourceInfo)
      Retrieves the correct resource manager for the specified resource.
      Parameters:
      resourceInfo - The info of the resource to get
      Returns:
      The sided resource manager for that resource
    • clientResources

      net.minecraft.server.packs.resources.ResourceManager clientResources()
      Returns:
      The regular client-sided resources in the assets folder
    • serverResources

      net.minecraft.server.packs.resources.ResourceManager serverResources()
      Returns:
      The server-sided resources in the data folder
    • getVeilResource

      @Nullable @Nullable VeilResource<?> getVeilResource(String namespace, String path)
      Searches for a veil resource by namespace and path.
      Parameters:
      namespace - The namespace to get the resource from
      path - The path of the resource
      Returns:
      The resource found or null
    • getVeilResource

      @Nullable default @Nullable VeilResource<?> getVeilResource(net.minecraft.resources.ResourceLocation location)
      Searches for a veil resource by location.
      Parameters:
      location - The location to get the resource from
      Returns:
      The resource found or null
    • getResourceMetadata

      @Nullable default @Nullable net.minecraft.server.packs.resources.ResourceMetadata getResourceMetadata(String namespace, String path)
      Searches for veil resource metadata by location.
      Parameters:
      namespace - The namespace to get the resource from
      path - The path of the resource
      Returns:
      The metadata for the resource found or null
    • getResourceMetadata

      @Nullable default @Nullable net.minecraft.server.packs.resources.ResourceMetadata getResourceMetadata(net.minecraft.resources.ResourceLocation location)
      Searches for veil resource metadata by location.
      Parameters:
      location - The location to get the resource from
      Returns:
      The metadata for the resource found or null