Skip to content

Commit

Permalink
Update concepts.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish authored Aug 29, 2024
1 parent 7b5800c commit eb84d74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/java/concepts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ generating assets and data. Resource caches have an identifier associated with t

```java
public static final DataResourceCache DATA_CACHE =
ResourceCache.register(new DataResourceCache(new ResourceLocation("my_mod", "data")));
ResourceCache.register(new DataResourceCache(ResourceLocation.fromNamespaceAndPath("my_mod", "data")));
```

`AssetResourceCache` is a similar built-in implementation for client resources.
Expand All @@ -36,4 +36,4 @@ existing resources or data both when generating resources and when determining w

Resources and data from other sources (the base game, resource packs, other mods, etc.) can be accessed through the provided
`ResourceGenerationContext`; by default, this will not contain resources from other packs added by DynAssetGen. To access
these, provide their names in `ResourceCache#getDependencies`.
these, provide their names in `ResourceCache#getDependencies`.

0 comments on commit eb84d74

Please sign in to comment.