[ci skip] spotlessApply with the new settings

This commit is contained in:
Jason Mitchell committed 2023-01-29 10:24:49 -08:00
1 parent 32411450d3
commit f1069a91f1
148 files changed
+2268 -3179

No files matched your search

+14 -15
View File
@@ -1,11 +1,8 @@
package magicbees.item;
import cpw.mods.fml.common.Optional;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import forestry.api.core.IToolScoop;
import magicbees.main.CommonProxy;
import magicbees.main.utils.compat.ThaumcraftHelper;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.Entity;
@@ -20,15 +17,20 @@ import net.minecraft.server.MinecraftServer;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeHooks;
import net.minecraftforge.oredict.OreDictionary;
import thaumcraft.api.IRepairable;
import thaumcraft.api.IWarpingGear;
import thaumcraft.api.ThaumcraftApi;
import cpw.mods.fml.common.Optional;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import forestry.api.core.IToolScoop;
@Optional.InterfaceList({
@Optional.Interface(iface = "thaumcraft.api.IRepairable", modid = ThaumcraftHelper.Name, striprefs = true),
@Optional.Interface(iface = "thaumcraft.api.IWarpingGear", modid = ThaumcraftHelper.Name, striprefs = true)
})
@Optional.Interface(iface = "thaumcraft.api.IRepairable", modid = ThaumcraftHelper.Name, striprefs = true),
@Optional.Interface(iface = "thaumcraft.api.IWarpingGear", modid = ThaumcraftHelper.Name, striprefs = true) })
public class ItemVoidScoop extends Item implements IRepairable, IToolScoop, IWarpingGear {
public ItemVoidScoop() {
super();
this.setMaxStackSize(1);
@@ -49,8 +51,8 @@ public class ItemVoidScoop extends Item implements IRepairable, IToolScoop, IWar
}
@Override
public boolean onBlockDestroyed(
ItemStack itemstack, World world, Block block, int j, int k, int l, EntityLivingBase entityliving) {
public boolean onBlockDestroyed(ItemStack itemstack, World world, Block block, int j, int k, int l,
EntityLivingBase entityliving) {
itemstack.damageItem(1, entityliving);
return true;
}
@@ -92,8 +94,7 @@ public class ItemVoidScoop extends Item implements IRepairable, IToolScoop, IWar
public void onUpdate(ItemStack stack, World world, Entity entity, int p_77663_4_, boolean p_77663_5_) {
super.onUpdate(stack, world, entity, p_77663_4_, p_77663_5_);
if ((stack.isItemDamaged())
&& (entity != null)
if ((stack.isItemDamaged()) && (entity != null)
&& (entity.ticksExisted % 20 == 0)
&& ((entity instanceof EntityLivingBase))) {
stack.damageItem(-1, (EntityLivingBase) entity);
@@ -101,10 +102,8 @@ public class ItemVoidScoop extends Item implements IRepairable, IToolScoop, IWar
}
public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity) {
if ((!player.worldObj.isRemote)
&& ((entity instanceof EntityLivingBase))
&& ((!(entity instanceof EntityPlayer))
|| (MinecraftServer.getServer().isPVPEnabled()))) {
if ((!player.worldObj.isRemote) && ((entity instanceof EntityLivingBase))
&& ((!(entity instanceof EntityPlayer)) || (MinecraftServer.getServer().isPVPEnabled()))) {
((EntityLivingBase) entity).addPotionEffect(new PotionEffect(Potion.weakness.getId(), 80));
}
return super.onLeftClickEntity(stack, player, entity);