add showStructBlockInfo, fastEasyPlace, and add arrow slot for easyPlace

This commit is contained in:
ForestOfLight
2025-03-16 22:46:20 -07:00
Unverified
parent c9927f8e24
commit fb3deea181
8 changed files with 246 additions and 35 deletions
+8
View File
@@ -33,6 +33,14 @@ class StructureCollection {
getStructuresAtLocation(location) {
return Object.values(this.#structures).filter(structure => structure.isLocationActive(structure.toStructureCoords(location)));
}
fetchStructureBlock(location) {
const locatedStructures = this.getStructuresAtLocation(location);
if (locatedStructures.length === 0)
return void 0;
const structure = locatedStructures[0];
return structure.getBlock(structure.toStructureCoords(location));
}
}
export const structureCollection = new StructureCollection();