mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-12-01 18:24:06 +00:00
PackResources.idOf: the id the pack's resources give a resource the pack names by key
This commit is contained in:
1 parent
40cb759271
commit
904a6599b3
2 files changed
+10
-1
No files matched your search
@@ -175,7 +175,7 @@ public void register(FeatureRegistry registry) {
|
||||
}
|
||||
|
||||
// anywhere the pack's resources are at hand, such as a stage or a validator
|
||||
Keep keep = resources.require(KEEPS.key(new ResourceId(resources.packId().namespace(), "towers/north")));
|
||||
Keep keep = resources.require(KEEPS.key(resources.idOf("towers/north")));
|
||||
List<ResourceId> all = resources.ids(Keep.class); // every keep of the pack, in id order
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user