[ci skip] spotlessApply with the new settings

This commit is contained in:
Jason Mitchell committed 2023-01-28 18:04:28 -08:00
1 parent 83698cb73c
commit 84c2239244
561 files changed
+8872 -9300

No files matched your search

@@ -1,7 +1,7 @@
package tconstruct.tools.entity;
import cpw.mods.fml.relauncher.*;
import java.util.*;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.projectile.EntityThrowable;
import net.minecraft.init.Items;
@@ -11,7 +11,10 @@ import net.minecraft.potion.*;
import net.minecraft.util.*;
import net.minecraft.world.World;
import cpw.mods.fml.relauncher.*;
public class LaunchedPotion extends EntityThrowable {
/**
* The damage value of the thrown potion that this EntityPotion represents.
*/
@@ -67,8 +70,7 @@ public class LaunchedPotion extends EntityThrowable {
}
/**
* Returns the damage value of the thrown potion that this EntityPotion
* represents.
* Returns the damage value of the thrown potion that this EntityPotion represents.
*/
public int getPotionDamage() {
if (this.potionDamage == null) {
@@ -88,8 +90,8 @@ public class LaunchedPotion extends EntityThrowable {
if (list != null && !list.isEmpty()) {
AxisAlignedBB axisalignedbb = this.boundingBox.expand(4.0D, 2.0D, 4.0D);
List<EntityLivingBase> list1 =
this.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axisalignedbb);
List<EntityLivingBase> list1 = this.worldObj
.getEntitiesWithinAABB(EntityLivingBase.class, axisalignedbb);
if (list1 != null && !list1.isEmpty()) {
@@ -108,13 +110,16 @@ public class LaunchedPotion extends EntityThrowable {
if (Potion.potionTypes[i].isInstant()) {
Potion.potionTypes[i].affectEntity(
this.getThrower(), entityliving, potioneffect.getAmplifier(), d1);
this.getThrower(),
entityliving,
potioneffect.getAmplifier(),
d1);
} else {
int j = (int) (d1 * (double) potioneffect.getDuration() + 0.5D);
if (j > 20) {
entityliving.addPotionEffect(
new PotionEffect(i, j, potioneffect.getAmplifier()));
entityliving
.addPotionEffect(new PotionEffect(i, j, potioneffect.getAmplifier()));
}
}
}