From 20bef6e26d948698398bd16aeab8c9e6b89110e4 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Thu, 22 Aug 2019 20:01:40 -0400 Subject: Format/import cleanup --- .../jewelrycraft/block/BlockCrystal.java | 32 ++++++---------------- 1 file changed, 9 insertions(+), 23 deletions(-) (limited to 'src/main/java/darkknight/jewelrycraft/block/BlockCrystal.java') diff --git a/src/main/java/darkknight/jewelrycraft/block/BlockCrystal.java b/src/main/java/darkknight/jewelrycraft/block/BlockCrystal.java index 98416c2..136d502 100755 --- a/src/main/java/darkknight/jewelrycraft/block/BlockCrystal.java +++ b/src/main/java/darkknight/jewelrycraft/block/BlockCrystal.java @@ -26,12 +26,8 @@ import net.minecraft.world.World; * */ public class BlockCrystal extends Block implements ITileEntityProvider { - public static int[] colors = { - 1973019, 11743532, 3887386, 5320730, 2437522, - 8073150, 2651799, 11250603, 4408131, 14188952, - 4312372, 14602026, 6719955, 12801229, 15435844, - 15790320 - }; + public static int[] colors = { 1973019, 11743532, 3887386, 5320730, 2437522, 8073150, 2651799, 11250603, 4408131, + 14188952, 4312372, 14602026, 6719955, 12801229, 15435844, 15790320 }; protected BlockCrystal() { super(Material.glass); @@ -75,8 +71,7 @@ public class BlockCrystal extends Block implements ITileEntityProvider { @Override @SideOnly(Side.CLIENT) - public int colorMultiplier(IBlockAccess world, int i, int j, - int k) { + public int colorMultiplier(IBlockAccess world, int i, int j, int k) { return colors[world.getBlockMetadata(i, j, k)]; } @@ -86,32 +81,23 @@ public class BlockCrystal extends Block implements ITileEntityProvider { } @Override - public void breakBlock(World world, int x, int y, int z, - Block block, int meta) { + public void breakBlock(World world, int x, int y, int z, Block block, int meta) { super.breakBlock(world, x, y, z, block, meta); world.removeTileEntity(x, y, z); } @Override - public boolean onBlockEventReceived(World world, int x, int y, - int z, int eventNo, int arg) { + public boolean onBlockEventReceived(World world, int x, int y, int z, int eventNo, int arg) { super.onBlockEventReceived(world, x, y, z, eventNo, arg); TileEntity tileentity = world.getTileEntity(x, y, z); - return tileentity != null - ? tileentity.receiveClientEvent(eventNo, - arg) - : false; + return tileentity != null ? tileentity.receiveClientEvent(eventNo, arg) : false; } @Override @SideOnly(Side.CLIENT) - public void randomDisplayTick(World world, int x, int y, int z, - Random rand) { + public void randomDisplayTick(World world, int x, int y, int z, Random rand) { if (ConfigHandler.CRYSTAL_PARTICLES) - world.spawnParticle("instantSpell", - x + rand.nextFloat(), - y + rand.nextFloat(), - z + rand.nextFloat(), 0.0D, -1.0D, - 0.0D); + world.spawnParticle("instantSpell", x + rand.nextFloat(), y + rand.nextFloat(), z + rand.nextFloat(), 0.0D, + -1.0D, 0.0D); } } -- cgit v1.2.3