mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-29 01:04:29 +00:00
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:
1 parent
0691753d21
commit
131f1575ae
3 files changed
+14
-4
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user