@@ -14,7 +14,7 @@ public static ImmutableList.Builder<SurfaceRules.MaterialRule> createBuilder(Sur
1414 return builder ;
1515 }
1616
17- public static SurfaceRules .MaterialRule getBlock (Block block ) {
17+ public static SurfaceRules .MaterialRule block (Block block ) {
1818 return SurfaceRules .block (block .getDefaultState ());
1919 }
2020
@@ -38,33 +38,37 @@ public static SurfaceRules.MaterialCondition waterWithStoneDepth() {
3838 return SurfaceRules .waterWithStoneDepth (-6 , -1 );
3939 }
4040
41- public static SurfaceRules .MaterialRule getConditionalBlock (SurfaceRules .MaterialCondition condition , Block firstPrimary , Block secondPrimary ) {
42- return SurfaceRules .sequence (SurfaceRules .condition (condition , SurfaceRuleUtils . getBlock ( firstPrimary )), SurfaceRuleUtils . getBlock ( secondPrimary ) );
41+ public static SurfaceRules .MaterialRule conditional (SurfaceRules .MaterialCondition condition , SurfaceRules . MaterialRule ifTrue , SurfaceRules . MaterialRule otherwise ) {
42+ return SurfaceRules .sequence (SurfaceRules .condition (condition , ifTrue ), otherwise );
4343 }
4444
45- public static SurfaceRules .MaterialRule getBedrockRoof ( ) {
46- return SurfaceRuleUtils .getRoof ( "bedrock_roof" , Blocks . BEDROCK );
45+ public static SurfaceRules .MaterialRule conditionalBlock ( SurfaceRules . MaterialCondition condition , Block firstPrimary , Block secondPrimary ) {
46+ return SurfaceRuleUtils .conditional ( condition , SurfaceRuleUtils . block ( firstPrimary ), SurfaceRuleUtils . block ( secondPrimary ) );
4747 }
4848
49- public static SurfaceRules .MaterialRule getBedrockFloor () {
50- return SurfaceRuleUtils .getFloor ( "bedrock_floor " , Blocks .BEDROCK );
49+ public static SurfaceRules .MaterialRule bedrockRoof () {
50+ return SurfaceRuleUtils .roof ( "bedrock_roof " , Blocks .BEDROCK );
5151 }
5252
53- public static SurfaceRules .MaterialRule getRoof (String randomName , Block roofBlock ) {
53+ public static SurfaceRules .MaterialRule bedrockFloor () {
54+ return SurfaceRuleUtils .floor ("bedrock_floor" , Blocks .BEDROCK );
55+ }
56+
57+ public static SurfaceRules .MaterialRule roof (String randomName , Block roofBlock ) {
5458 return SurfaceRules .condition (SurfaceRules .not (
5559 SurfaceRules .verticalGradient (randomName , YOffset .belowTop (5 ), YOffset .getTop ())
56- ), SurfaceRuleUtils .getBlock (roofBlock ));
60+ ), SurfaceRuleUtils .block (roofBlock ));
5761 }
5862
59- public static SurfaceRules .MaterialRule getDeep (String randomName , Block deepBlock ) {
63+ public static SurfaceRules .MaterialRule deep (String randomName , Block deepBlock ) {
6064 return SurfaceRules .condition (SurfaceRules .verticalGradient (
6165 randomName , YOffset .fixed (0 ), YOffset .fixed (8 )
62- ), SurfaceRuleUtils .getBlock (deepBlock ));
66+ ), SurfaceRuleUtils .block (deepBlock ));
6367 }
6468
65- public static SurfaceRules .MaterialRule getFloor (String randomName , Block floorBlock ) {
69+ public static SurfaceRules .MaterialRule floor (String randomName , Block floorBlock ) {
6670 return SurfaceRules .condition (SurfaceRules .verticalGradient (
6771 randomName , YOffset .getBottom (), YOffset .aboveBottom (5 )
68- ), SurfaceRuleUtils .getBlock (floorBlock ));
72+ ), SurfaceRuleUtils .block (floorBlock ));
6973 }
7074}
0 commit comments