diff options
author | Raven Szewczyk <git@eigenraven.me> | 2024-05-25 13:32:28 +0100 |
---|---|---|
committer | Raven Szewczyk <git@eigenraven.me> | 2024-05-25 13:32:28 +0100 |
commit | ec910ff188fe0600182e00f3c279c37998ebaf4b (patch) | |
tree | 7886ce61cb8ad65d670e8ee4c7b996e75268b483 /src/main/java/common/blocks/Block_IchorJar.java | |
parent | 2cac4baea3a0e6c671dc44cd3199cf476a6eec94 (diff) | |
download | GT5-Unofficial-ec910ff188fe0600182e00f3c279c37998ebaf4b.tar.gz GT5-Unofficial-ec910ff188fe0600182e00f3c279c37998ebaf4b.tar.bz2 GT5-Unofficial-ec910ff188fe0600182e00f3c279c37998ebaf4b.zip |
Update formatting to GT5u spotless config
Diffstat (limited to 'src/main/java/common/blocks/Block_IchorJar.java')
-rw-r--r-- | src/main/java/common/blocks/Block_IchorJar.java | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/src/main/java/common/blocks/Block_IchorJar.java b/src/main/java/common/blocks/Block_IchorJar.java index 7a8596eb0d..a82f9862f0 100644 --- a/src/main/java/common/blocks/Block_IchorJar.java +++ b/src/main/java/common/blocks/Block_IchorJar.java @@ -80,7 +80,7 @@ public class Block_IchorJar extends BlockJar { @Override public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float f1, float f2, - float f3) { + float f3) { // Call parent method to handle jar emptying, labels stuff etc super.onBlockActivated(world, x, y, z, player, side, f1, f2, f3); // Interact with Essentia Phials if the player holds one @@ -129,12 +129,7 @@ public class Block_IchorJar extends BlockJar { // Drop on ground if there's no inventory space if (!player.inventory.addItemStackToInventory(filledPhial)) { world.spawnEntityInWorld( - new EntityItem( - world, - (float) x + 0.5F, - (float) y + 0.5F, - (float) z + 0.5F, - filledPhial)); + new EntityItem(world, (float) x + 0.5F, (float) y + 0.5F, (float) z + 0.5F, filledPhial)); } world.playSoundAtEntity(player, "game.neutral.swim", 0.25F, 1.0F); @@ -159,12 +154,12 @@ public class Block_IchorJar extends BlockJar { // Drop on ground if there's no inventory space if (!player.inventory.addItemStackToInventory(new ItemStack(ConfigItems.itemEssence, 1, 0))) { world.spawnEntityInWorld( - new EntityItem( - world, - (float) x + 0.5F, - (float) y + 0.5F, - (float) z + 0.5F, - new ItemStack(ConfigItems.itemEssence, 1, 0))); + new EntityItem( + world, + (float) x + 0.5F, + (float) y + 0.5F, + (float) z + 0.5F, + new ItemStack(ConfigItems.itemEssence, 1, 0))); } world.playSoundAtEntity(player, "game.neutral.swim", 0.25F, 1.0F); @@ -192,7 +187,7 @@ public class Block_IchorJar extends BlockJar { } private void breakBlockWarpy(World world, int x, int y, int z, int fillAmount, int iterations, - float explosionStrength) { + float explosionStrength) { if (fillAmount > 0) { // Create a decent explosion in the center of the block (TNT has strength 4.0F) world.createExplosion(null, x + 0.5D, y + 0.5D, z + 0.5D, explosionStrength, false); @@ -226,7 +221,7 @@ public class Block_IchorJar extends BlockJar { @Override public void onBlockHarvested(World par1World, int par2, int par3, int par4, int par5, - EntityPlayer par6EntityPlayer) {} + EntityPlayer par6EntityPlayer) {} @Override public boolean canDropFromExplosion(Explosion e) { |