mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
ObjectsAt.placedBy: the biomes and regions whose settings place an object
This commit is contained in:
1 parent
46676fd99b
commit
ba96e0cbc2
4 files changed
+48
-8
No files matched your search
@@ -49,7 +49,17 @@ class WorldStateExampleTest {
|
||||
|
||||
public void register(FeatureRegistry registry) {
|
||||
registry.registerLifecycle(this);
|
||||
registry.registerService(ObjectsAt.class, RuinsModule::objectsAt);
|
||||
registry.registerService(ObjectsAt.class, new ObjectsAt() {
|
||||
@Override
|
||||
public Set<String> objectsAt(PackWorld world, int chunkX, int chunkZ) {
|
||||
return RuinsModule.objectsAt(world, chunkX, chunkZ);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PlacedBy placedBy(PackWorld world, String objectKey) {
|
||||
return PlacedBy.NOTHING;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user