[ci skip] spotlessApply with the new settings

This commit is contained in:
Jason Mitchell committed 2023-01-29 12:44:17 -08:00
1 parent 1eaf9b7991
commit 62390a0d0f
79 files changed
+3118 -1929

No files matched your search

@@ -1,18 +1,19 @@
package taintedmagic.common.items;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraft.util.DamageSource;
import net.minecraft.world.World;
import taintedmagic.common.TaintedMagic;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class ItemNightshadeBerries extends ItemFood {
public ItemNightshadeBerries (final int healAmount, final float saturation, final boolean b) {
public ItemNightshadeBerries(final int healAmount, final float saturation, final boolean b) {
super(healAmount, saturation, b);
setCreativeTab(TaintedMagic.tabTM);
setUnlocalizedName("ItemNightshadeBerries");
@@ -21,13 +22,13 @@ public class ItemNightshadeBerries extends ItemFood {
}
@Override
@SideOnly (Side.CLIENT)
public EnumRarity getRarity (final ItemStack stack) {
@SideOnly(Side.CLIENT)
public EnumRarity getRarity(final ItemStack stack) {
return EnumRarity.uncommon;
}
@Override
protected void onFoodEaten (final ItemStack stack, final World world, final EntityPlayer player) {
protected void onFoodEaten(final ItemStack stack, final World world, final EntityPlayer player) {
super.onFoodEaten(stack, world, player);
if (!world.isRemote) {
player.attackEntityFrom(new DamageSource("nightshade"), Short.MAX_VALUE);