Document that only the host makes PlaceableObjects

PlaceableObject was described as immutable and implementable. The host
rejects foreign implementations, and smartBored now returns a copy
instead of changing the shared object. The javadoc and README say so.
This commit is contained in:
piexel committed 2026-11-06 12:59:35 +01:00
1 parent 0691753d21
commit 131f1575ae
3 files changed
+14 -4

No files matched your search

+2
View File
@@ -286,6 +286,8 @@ if (!outcome.isPlaced()) {
- `PackObjects` gives an object of the pack by id, its size without loading it (`sizeOf`, for a reach), a scaled or
smart-bored copy, and objects a module builds block by block (`build`). The host keeps them per pack snapshot.
Only `PackObjects` makes a `PlaceableObject`; a module does not implement it, and the host rejects one it did not
make. `scaled` and `smartBored` return other objects and leave the original as it was.
- `PlacementTerrain` is the world the placement reads and the host writes into once it commits: heights, blocks,
carved space, fluid, the structures nearby and the placement recorded at a block (`recordPlacement`, `placementAt`;
`RunningWorld.placementAt` reads it back later, such as for the loot of a placed object). A recorded placement is a