Ceiling vine curtains

- A vine under a sturdy ceiling keeps its authored side faces
- Vines below it hold those faces through the vine above
- The vine-above check reads the facing before the material key
This commit is contained in:
Brian Neumann-Fopiano committed 2026-10-31 22:03:49 -04:00
1 parent c2eb8b5f42
commit 067fffe066
3 files changed
+40 -4

No files matched your search

@@ -83,6 +83,21 @@ public class ModdedDecoratorHooksTest {
assertEquals(EnumSet.of(Direction.NORTH), faces(hunk.get(8, 3, 8)));
}
@Test
public void stackedVineCurtainHangsUnderAnOpenCeiling() {
Hunk<NativeBlockState> hunk = Hunk.newArrayHunk(16, 8, 16);
hunk.set(8, 6, 8, stone());
NativeBlockState vine = state(Blocks.VINE, Direction.NORTH);
for (int y = 5; y >= 3; y--) {
hunk.set(8, y, 8, fix(vine, hunk, y));
}
assertEquals(EnumSet.of(Direction.NORTH, Direction.UP), faces(hunk.get(8, 5, 8)));
assertEquals(EnumSet.of(Direction.NORTH), faces(hunk.get(8, 4, 8)));
assertEquals(EnumSet.of(Direction.NORTH), faces(hunk.get(8, 3, 8)));
}
@Test
public void unsupportedAuthoredSideFaceOnALoneVineIsDroppedAndReattached() {
NativeBlockState vine = state(Blocks.VINE, Direction.NORTH);