[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

+14 -17
View File
@@ -1,19 +1,21 @@
package tconstruct.items.tools;
import cpw.mods.fml.relauncher.*;
import java.util.List;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.*;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import tconstruct.library.TConstructRegistry;
import tconstruct.library.crafting.ToolBuilder;
import tconstruct.library.tools.CustomMaterial;
import tconstruct.library.tools.FletchingMaterial;
import tconstruct.library.tools.ToolCore;
import tconstruct.weaponry.TinkerWeaponry;
import cpw.mods.fml.relauncher.*;
@Deprecated
public class Arrow extends ToolCore {
@@ -85,7 +87,7 @@ public class Arrow extends ToolCore {
@Override
public String[] getTraits() {
return new String[] {"ammo"};
return new String[] { "ammo" };
}
@Override
@@ -152,17 +154,8 @@ public class Arrow extends ToolCore {
}
@Override
public boolean onItemUse(
ItemStack stack,
EntityPlayer player,
World world,
int x,
int y,
int z,
int side,
float clickX,
float clickY,
float clickZ) {
public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side,
float clickX, float clickY, float clickZ) {
return false;
}
@@ -212,9 +205,13 @@ public class Arrow extends ToolCore {
}
}
int attack = (int) (tags.getCompoundTag("InfiTool").getInteger("Attack") * this.getDamageModifier());
list.add("\u00A79+" + attack + " "
+ StatCollector.translateToLocalFormatted("attribute.name.generic.attackDamage"));
list.add("\u00A79+" + tags.getCompoundTag("InfiTool").getInteger("Attack") + " "
+ StatCollector.translateToLocalFormatted("attribute.name.ammo.attackDamage"));
list.add(
"\u00A79+" + attack
+ " "
+ StatCollector.translateToLocalFormatted("attribute.name.generic.attackDamage"));
list.add(
"\u00A79+" + tags.getCompoundTag("InfiTool").getInteger("Attack")
+ " "
+ StatCollector.translateToLocalFormatted("attribute.name.ammo.attackDamage"));
}
}