mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 00:34:19 +00:00
Add PackBiome and PackRegion so modules can look up pack biomes and regions through PackResources
This commit is contained in:
1 parent
50f51db8b2
commit
33fc9adca9
6 files changed
+67
-3
No files matched your search
@@ -7,8 +7,11 @@ import java.util.UUID;
|
||||
|
||||
/** Immutable view of one loaded pack snapshot, safe for concurrent reads.
|
||||
* Reload produces a different snapshotId, even for the same pack. Resources must be immutable
|
||||
* or explicitly thread-safe. Unknown IDs return empty; a known ID with the wrong requested
|
||||
* type throws IllegalArgumentException. Broken resources fail loading rather than appearing absent.
|
||||
* or explicitly thread-safe. The requested type selects the kind of resource, so one ID can name
|
||||
* both a biome and a region. Hosts serve {@code GeneratedObject} (pack objects),
|
||||
* {@code PackBiome} and {@code PackRegion}; an ID the pack lacks for that kind returns empty, and a
|
||||
* type the host does not serve throws IllegalArgumentException. Broken resources fail loading
|
||||
* rather than appearing absent.
|
||||
* The host owns resolution, imports, native handles and caches; no filesystem paths escape.
|
||||
*/
|
||||
public interface PackResources {
|
||||
|
||||
Reference in new issue
Block a user