mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
run repo through formatter
This commit is contained in:
1 parent
5585d680a3
commit
ffaea7d4b7
140 files changed
+1050
-892
No files matched your search
@@ -25,7 +25,7 @@ public class AModHealthBoost extends ArmorModTypeFilter
|
||||
protected boolean canModify (ItemStack tool, ItemStack[] input)
|
||||
{
|
||||
NBTTagCompound tags = tool.getTagCompound().getCompoundTag(getTagName());
|
||||
int amount = matchingItems(input)*modifyAmount;
|
||||
int amount = matchingItems(input) * modifyAmount;
|
||||
return tags.getInteger("Modifiers") >= amount;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ public class AModHealthBoost extends ArmorModTypeFilter
|
||||
NBTTagCompound armorTag = armor.getTagCompound().getCompoundTag(getTagName());
|
||||
|
||||
int modifiers = armorTag.getInteger("Modifiers");
|
||||
modifiers -= matchingAmount(input)*modifyAmount;
|
||||
modifiers -= matchingAmount(input) * modifyAmount;
|
||||
armorTag.setInteger("Modifiers", modifiers);
|
||||
|
||||
int amount = matchingAmount(input);
|
||||
@@ -49,7 +49,7 @@ public class AModHealthBoost extends ArmorModTypeFilter
|
||||
NBTTagList attributes;
|
||||
if (baseTag.hasKey("AttributeModifiers"))
|
||||
{
|
||||
attributes = baseTag.getTagList("AttributeModifiers",9);
|
||||
attributes = baseTag.getTagList("AttributeModifiers", 9);
|
||||
for (int iter = 0; iter < attributes.tagCount(); iter++)
|
||||
{
|
||||
NBTTagCompound tag = (NBTTagCompound) attributes.getCompoundTagAt(iter);
|
||||
|
||||
@@ -62,7 +62,7 @@ public class AModKnockbackResistance extends ArmorModTypeFilter
|
||||
attributes = new NBTTagList();
|
||||
baseTag.setTag("AttributeModifiers", attributes);
|
||||
}
|
||||
attributes.appendTag(getAttributeTag("generic.knockbackResistance", key, amount*0.01, modifierType, getUUIDFromItem(armor)));
|
||||
attributes.appendTag(getAttributeTag("generic.knockbackResistance", key, amount * 0.01, modifierType, getUUIDFromItem(armor)));
|
||||
}
|
||||
|
||||
private static final UUID head = UUID.fromString("4188779d-69d4-487c-b307-c4c182522c44");
|
||||
|
||||
@@ -37,7 +37,7 @@ public class AModMoveSpeed extends ArmorModTypeFilter
|
||||
int modifiers = armorTag.getInteger("Modifiers");
|
||||
modifiers -= amount;
|
||||
armorTag.setInteger("Modifiers", modifiers);
|
||||
|
||||
|
||||
if (armorTag.hasKey(key))
|
||||
{
|
||||
amount += armorTag.getInteger(key);
|
||||
@@ -47,7 +47,7 @@ public class AModMoveSpeed extends ArmorModTypeFilter
|
||||
NBTTagList attributes;
|
||||
if (baseTag.hasKey("AttributeModifiers"))
|
||||
{
|
||||
attributes = baseTag.getTagList("AttributeModifiers",9);
|
||||
attributes = baseTag.getTagList("AttributeModifiers", 9);
|
||||
for (int iter = 0; iter < attributes.tagCount(); iter++)
|
||||
{
|
||||
NBTTagCompound tag = (NBTTagCompound) attributes.getCompoundTagAt(iter);
|
||||
|
||||
@@ -12,6 +12,7 @@ import tconstruct.library.armor.EnumArmorPart;
|
||||
public class AModProtection extends ArmorModTypeFilter
|
||||
{
|
||||
int modifyAmount = 3;
|
||||
|
||||
public AModProtection(int effect, EnumSet<EnumArmorPart> armorTypes, ItemStack[] items, int[] values)
|
||||
{
|
||||
super(effect, "ExoProtection", armorTypes, items, values);
|
||||
@@ -38,6 +39,6 @@ public class AModProtection extends ArmorModTypeFilter
|
||||
int amount = matchingAmount(input);
|
||||
double absorb = armorTag.getDouble("protection");
|
||||
absorb += amount;
|
||||
armorTag.setDouble("protection", absorb);
|
||||
armorTag.setDouble("protection", absorb);
|
||||
}
|
||||
}
|
||||
@@ -57,7 +57,7 @@ public abstract class ToolModTypeFilter extends ToolMod
|
||||
}
|
||||
if (!match)
|
||||
return false;
|
||||
|
||||
|
||||
minimumMatch = true;
|
||||
}
|
||||
return minimumMatch;
|
||||
|
||||
Reference in new issue
Block a user