aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/damagesources
diff options
context:
space:
mode:
authorJason Mitchell <mitchej@gmail.com>2023-01-30 10:56:42 -0800
committerJason Mitchell <mitchej@gmail.com>2023-01-30 10:56:42 -0800
commit0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a (patch)
tree1e2c649f3a6ce3f6b2babd0098a5f4819e9cd0b6 /src/main/java/gregtech/api/damagesources
parentf8cc82edeb9810c45cba762d733a2c909a302faa (diff)
downloadGT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.tar.gz
GT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.tar.bz2
GT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.zip
[ci skip] spotlessApply with the new settings
Diffstat (limited to 'src/main/java/gregtech/api/damagesources')
-rw-r--r--src/main/java/gregtech/api/damagesources/GT_DamageSources.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/main/java/gregtech/api/damagesources/GT_DamageSources.java b/src/main/java/gregtech/api/damagesources/GT_DamageSources.java
index a012f030c5..fca4d7fe9f 100644
--- a/src/main/java/gregtech/api/damagesources/GT_DamageSources.java
+++ b/src/main/java/gregtech/api/damagesources/GT_DamageSources.java
@@ -1,11 +1,13 @@
package gregtech.api.damagesources;
import javax.annotation.Nullable;
+
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
import net.minecraft.util.*;
public class GT_DamageSources {
+
public static DamageSource getElectricDamage() {
return ic2.api.info.Info.DMG_ELECTRIC;
}
@@ -35,6 +37,7 @@ public class GT_DamageSources {
}
private static class DamageSourceCombat extends EntityDamageSource {
+
private final IChatComponent mDeathMessage;
public DamageSourceCombat(String aType, EntityLivingBase aPlayer, IChatComponent aDeathMessage) {
@@ -49,6 +52,7 @@ public class GT_DamageSources {
}
private static class DamageSourceFrost extends DamageSource {
+
public DamageSourceFrost() {
super("frost");
setDifficultyScaled();
@@ -62,6 +66,7 @@ public class GT_DamageSources {
}
private static class DamageSourceHeat extends DamageSource {
+
public DamageSourceHeat() {
super("steam");
setDifficultyScaled();
@@ -69,12 +74,15 @@ public class GT_DamageSources {
@Override
public IChatComponent func_151519_b(EntityLivingBase aTarget) {
- return new ChatComponentText(EnumChatFormatting.RED + aTarget.getCommandSenderName()
- + EnumChatFormatting.WHITE + " was boiled alive");
+ return new ChatComponentText(
+ EnumChatFormatting.RED + aTarget.getCommandSenderName()
+ + EnumChatFormatting.WHITE
+ + " was boiled alive");
}
}
public static class DamageSourceHotItem extends DamageSourceHeat {
+
@Nullable
private final ItemStack stack;
@@ -89,6 +97,7 @@ public class GT_DamageSources {
}
public static class DamageSourceExploding extends DamageSource {
+
public DamageSourceExploding() {
super("exploded");
setDamageAllowedInCreativeMode();