Skip to content

Commit da091a1

Browse files
committed
Format GT_Renderer_Block.class
1 parent 06406c6 commit da091a1

File tree

1 file changed

+25
-20
lines changed

1 file changed

+25
-20
lines changed

src/main/java/gregtech/common/render/GT_Renderer_Block.java

+25-20
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import net.minecraft.block.Block;
1717
import net.minecraft.client.Minecraft;
1818
import net.minecraft.client.renderer.RenderBlocks;
19-
import net.minecraft.tileentity.TileEntity;
2019
import net.minecraft.world.IBlockAccess;
2120

2221
import lombok.val;
@@ -128,7 +127,7 @@ public boolean renderWorldBlock(IBlockAccess world,
128127
val renderPass = ForgeHooksClient.getWorldRenderPass();
129128
if (renderPass == 0) {
130129
isTranslucentPass = false;
131-
} else if(renderPass == 1) {
130+
} else if (renderPass == 1) {
132131
isTranslucentPass = true;
133132
} else {
134133
return false; // Don't render anything, something went wrong! Can't log either because it would do another A2 fr fr...
@@ -200,22 +199,22 @@ public static boolean renderStandardBlock(IBlockAccess world, int posX, int posY
200199
val te = world.getTileEntity(posX, posY, posZ);
201200
if ((te instanceof IPipeRenderedTileEntity pipeTile)) {
202201
return renderStandardBlock(world, posX, posY, posZ, block, renderBlocks, new ITexture[][]{
203-
pipeTile.getTextureCovered(DOWN),
204-
pipeTile.getTextureCovered(UP),
205-
pipeTile.getTextureCovered(NORTH),
206-
pipeTile.getTextureCovered(SOUTH),
207-
pipeTile.getTextureCovered(WEST),
208-
pipeTile.getTextureCovered(EAST)},
202+
pipeTile.getTextureCovered(DOWN),
203+
pipeTile.getTextureCovered(UP),
204+
pipeTile.getTextureCovered(NORTH),
205+
pipeTile.getTextureCovered(SOUTH),
206+
pipeTile.getTextureCovered(WEST),
207+
pipeTile.getTextureCovered(EAST)},
209208
isTranslucentPass);
210209
}
211210
if (te instanceof ITexturedTileEntity texturedTile) {
212211
return renderStandardBlock(world, posX, posY, posZ, block, renderBlocks, new ITexture[][]{
213-
texturedTile.getTexture(block, DOWN),
214-
texturedTile.getTexture(block, UP),
215-
texturedTile.getTexture(block, NORTH),
216-
texturedTile.getTexture(block, SOUTH),
217-
texturedTile.getTexture(block, WEST),
218-
texturedTile.getTexture(block, EAST)},
212+
texturedTile.getTexture(block, DOWN),
213+
texturedTile.getTexture(block, UP),
214+
texturedTile.getTexture(block, NORTH),
215+
texturedTile.getTexture(block, SOUTH),
216+
texturedTile.getTexture(block, WEST),
217+
texturedTile.getTexture(block, EAST)},
219218
isTranslucentPass);
220219
}
221220
return false;
@@ -656,12 +655,18 @@ public static boolean renderFacing(IBlockAccess world,
656655
byte side,
657656
boolean isTranslucentPass) {
658657
return switch (side) {
659-
case 0 -> renderNegativeYFacing(world, render, block, posX, posY, posZ, textures, isFullBlock, isTranslucentPass);
660-
case 1 -> renderPositiveYFacing(world, render, block, posX, posY, posZ, textures, isFullBlock, isTranslucentPass);
661-
case 2 -> renderNegativeZFacing(world, render, block, posX, posY, posZ, textures, isFullBlock, isTranslucentPass);
662-
case 3 -> renderPositiveZFacing(world, render, block, posX, posY, posZ, textures, isFullBlock, isTranslucentPass);
663-
case 4 -> renderNegativeXFacing(world, render, block, posX, posY, posZ, textures, isFullBlock, isTranslucentPass);
664-
case 5 -> renderPositiveXFacing(world, render, block, posX, posY, posZ, textures, isFullBlock, isTranslucentPass);
658+
case 0 ->
659+
renderNegativeYFacing(world, render, block, posX, posY, posZ, textures, isFullBlock, isTranslucentPass);
660+
case 1 ->
661+
renderPositiveYFacing(world, render, block, posX, posY, posZ, textures, isFullBlock, isTranslucentPass);
662+
case 2 ->
663+
renderNegativeZFacing(world, render, block, posX, posY, posZ, textures, isFullBlock, isTranslucentPass);
664+
case 3 ->
665+
renderPositiveZFacing(world, render, block, posX, posY, posZ, textures, isFullBlock, isTranslucentPass);
666+
case 4 ->
667+
renderNegativeXFacing(world, render, block, posX, posY, posZ, textures, isFullBlock, isTranslucentPass);
668+
case 5 ->
669+
renderPositiveXFacing(world, render, block, posX, posY, posZ, textures, isFullBlock, isTranslucentPass);
665670
default -> false;
666671
};
667672
}

0 commit comments

Comments
 (0)