Mirror objects along X and Z in the object transformer, mirroring block states through the platform's own mirror

This commit is contained in:
piexel committed 2026-10-08 15:16:25 +02:00
1 parent 563c2cd276
commit 844e3205ac
9 files changed
+221 -12

No files matched your search

@@ -182,6 +182,20 @@ public interface PlatformBlockState {
*/
boolean canPlaceOnto(PlatformBlockState onto);
/**
* This state as it looks when the block is mirrored along X, so that a block at x lands at -x: east and west
* swap, and so does everything that faces or leans toward them (stairs, doors, signs, vines). The platform's
* own mirror decides what changes. Returns this state when mirroring changes nothing. Never mutates the
* receiver.
*/
PlatformBlockState mirrorX();
/**
* This state as it looks when the block is mirrored along Z, so that a block at z lands at -z: north and south
* swap, and so does everything that faces or leans toward them. See {@link #mirrorX()}.
*/
PlatformBlockState mirrorZ();
/**
* Whether this block can attach to the {@code face} of {@code support}, ignoring every other neighbour: the
* support's face is sturdy enough to hold a torch, a ladder or a button against it, which is the platform's own