From 14e33438f8bbcbb7f82e5e65a970fb3f9c388da5 Mon Sep 17 00:00:00 2001 From: Adrien1106 Date: Fri, 16 Feb 2024 00:47:25 +0100 Subject: [PATCH] added stairs inner shape generator --- .../reframed/block/ReFramedStairsBlock.java | 36 ++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/src/main/java/fr/adrien1106/reframed/block/ReFramedStairsBlock.java b/src/main/java/fr/adrien1106/reframed/block/ReFramedStairsBlock.java index 5bf11d5..f7565d9 100644 --- a/src/main/java/fr/adrien1106/reframed/block/ReFramedStairsBlock.java +++ b/src/main/java/fr/adrien1106/reframed/block/ReFramedStairsBlock.java @@ -293,10 +293,44 @@ public class ReFramedStairsBlock extends WaterloggableReFramedBlock implements M GBlockstate.variant(straight_id, true, R180, R270)) .with(GBlockstate.when(FACING, SOUTH_UP, SHAPE, STRAIGHT), GBlockstate.variant(straight_id, true, R180, R90)) + /* INNER BOTTOM */ + .with(When.anyOf( + GBlockstate.when(FACING, NORTH_DOWN, SHAPE, INNER_LEFT), + GBlockstate.when(FACING, WEST_DOWN, SHAPE, INNER_LEFT)), + GBlockstate.variant(inner_id, true, R0, R180)) + .with(When.anyOf( + GBlockstate.when(FACING, NORTH_DOWN, SHAPE, INNER_RIGHT), + GBlockstate.when(FACING, DOWN_EAST, SHAPE, INNER_LEFT)), + GBlockstate.variant(inner_id, true, R0, R270)) + .with(When.anyOf( + GBlockstate.when(FACING, DOWN_SOUTH, SHAPE, INNER_RIGHT), + GBlockstate.when(FACING, DOWN_EAST, SHAPE, INNER_RIGHT)), + GBlockstate.variant(inner_id, true, R0, R0)) + .with(When.anyOf( + GBlockstate.when(FACING, DOWN_SOUTH, SHAPE, INNER_LEFT), + GBlockstate.when(FACING, WEST_DOWN, SHAPE, INNER_RIGHT)), + GBlockstate.variant(inner_id, true, R0, R90)) + /* INNER TOP */ + .with(When.anyOf( + GBlockstate.when(FACING, EAST_UP, SHAPE, INNER_LEFT), + GBlockstate.when(FACING, UP_NORTH, SHAPE, INNER_RIGHT)), + GBlockstate.variant(inner_id, true, R180, R0)) + .with(When.anyOf( + GBlockstate.when(FACING, EAST_UP, SHAPE, INNER_RIGHT), + GBlockstate.when(FACING, SOUTH_UP, SHAPE, INNER_RIGHT)), + GBlockstate.variant(inner_id, true, R180, R90)) + .with(When.anyOf( + GBlockstate.when(FACING, SOUTH_UP, SHAPE, INNER_LEFT), + GBlockstate.when(FACING, UP_WEST, SHAPE, INNER_RIGHT)), + GBlockstate.variant(inner_id, true, R180, R180)) + .with(When.anyOf( + GBlockstate.when(FACING, UP_NORTH, SHAPE, INNER_LEFT), + GBlockstate.when(FACING, UP_WEST, SHAPE, INNER_LEFT)), + GBlockstate.variant(inner_id, true, R180, R270)) /* OUTER X AXIS */ .with(GBlockstate.when(FACING, DOWN_EAST, SHAPE, FIRST_OUTER_RIGHT), GBlockstate.variant(outer_id, true, R0, R0)) - .with(GBlockstate.when(FACING, DOWN_EAST, SHAPE, INNER_LEFT), + .with(GBlockstate.when(FACING, DOWN_EAST, SHAPE, FIRST_OUTER_RIGHT), GBlockstate.variant(inner_id, true, R0, R270)) /* OUTER DOUBLE */ .with(GBlockstate.when(FACING, NORTH_DOWN, SHAPE, OUTER_LEFT),