mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-18 19:39:12 +00:00
[ci skip] spotlessApply with the new settings
This commit is contained in:
1 parent
83698cb73c
commit
84c2239244
561 files changed
+8872
-9300
No files matched your search
@@ -1,12 +1,15 @@
|
||||
package tconstruct.modifiers.tools;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
import tconstruct.library.modifier.IModifyable;
|
||||
import tconstruct.library.tools.ToolCore;
|
||||
|
||||
public class ModAttack extends ItemModTypeFilter {
|
||||
|
||||
String tooltipName;
|
||||
int max;
|
||||
int threshold;
|
||||
@@ -37,8 +40,8 @@ public class ModAttack extends ItemModTypeFilter {
|
||||
}
|
||||
|
||||
// gloves
|
||||
public ModAttack(
|
||||
String type, int effect, ItemStack[] items, int[] value, int max, int threshold, String modifierType) {
|
||||
public ModAttack(String type, int effect, ItemStack[] items, int[] value, int max, int threshold,
|
||||
String modifierType) {
|
||||
super(effect, "ModAttack", items, value);
|
||||
tooltipName = "\u00a7fKnuckles";
|
||||
guiType = type;
|
||||
@@ -112,7 +115,7 @@ public class ModAttack extends ItemModTypeFilter {
|
||||
int increase = matchingAmount(input);
|
||||
String modName = "\u00a7f" + guiType + " (" + increase + "/" + max + ")";
|
||||
int tooltipIndex = addToolTip(tool, tooltipName, modName);
|
||||
int[] keyPair = new int[] {increase, max, tooltipIndex};
|
||||
int[] keyPair = new int[] { increase, max, tooltipIndex };
|
||||
tags.setIntArray(key, keyPair);
|
||||
|
||||
int attack = tags.getInteger("Attack");
|
||||
|
||||
Reference in new issue
Block a user