Run formatter
This commit is contained in:
parent
61c44a831b
commit
08258fd6ef
606 changed files with 13464 additions and 22975 deletions
|
@ -11,27 +11,23 @@ import org.apache.commons.codec.binary.StringUtils;
|
|||
|
||||
import java.util.UUID;
|
||||
|
||||
public class LivingArmourUpgradeKnockbackResist extends LivingArmourUpgrade
|
||||
{
|
||||
public static final int[] costs = new int[] { 3, 7, 13, 26, 42 };
|
||||
public static final double[] kbModifier = new double[] { 0.2, 0.4, 0.6, 0.8, 1.0 };
|
||||
public static final int[] healthModifier = new int[] { 0, 0, 0, 4, 10 };
|
||||
public class LivingArmourUpgradeKnockbackResist extends LivingArmourUpgrade {
|
||||
public static final int[] costs = new int[]{3, 7, 13, 26, 42};
|
||||
public static final double[] kbModifier = new double[]{0.2, 0.4, 0.6, 0.8, 1.0};
|
||||
public static final int[] healthModifier = new int[]{0, 0, 0, 4, 10};
|
||||
|
||||
public LivingArmourUpgradeKnockbackResist(int level)
|
||||
{
|
||||
public LivingArmourUpgradeKnockbackResist(int level) {
|
||||
super(level);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Multimap<String, AttributeModifier> getAttributeModifiers()
|
||||
{
|
||||
public Multimap<String, AttributeModifier> getAttributeModifiers() {
|
||||
Multimap<String, AttributeModifier> modifierMap = HashMultimap.<String, AttributeModifier>create();
|
||||
|
||||
String name = getUniqueIdentifier() + "-KnockbackModifier1";
|
||||
modifierMap.put(SharedMonsterAttributes.KNOCKBACK_RESISTANCE.getName(), new AttributeModifier(UUID.nameUUIDFromBytes(StringUtils.getBytesUtf8(name)), "KnockbackModifier1", kbModifier[this.level], 0));
|
||||
|
||||
if (healthModifier[this.level] > 0)
|
||||
{
|
||||
if (healthModifier[this.level] > 0) {
|
||||
name = getUniqueIdentifier() + "-HealthModifier1";
|
||||
modifierMap.put(SharedMonsterAttributes.MAX_HEALTH.getName(), new AttributeModifier(UUID.nameUUIDFromBytes(StringUtils.getBytesUtf8(name)), "HealthModifier1", healthModifier[this.level], 0));
|
||||
}
|
||||
|
@ -40,38 +36,32 @@ public class LivingArmourUpgradeKnockbackResist extends LivingArmourUpgrade
|
|||
}
|
||||
|
||||
@Override
|
||||
public String getUniqueIdentifier()
|
||||
{
|
||||
public String getUniqueIdentifier() {
|
||||
return BloodMagic.MODID + ".upgrade.knockback";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxTier()
|
||||
{
|
||||
public int getMaxTier() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getCostOfUpgrade()
|
||||
{
|
||||
public int getCostOfUpgrade() {
|
||||
return costs[this.level];
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound tag)
|
||||
{
|
||||
public void writeToNBT(NBTTagCompound tag) {
|
||||
// EMPTY
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT(NBTTagCompound tag)
|
||||
{
|
||||
public void readFromNBT(NBTTagCompound tag) {
|
||||
// EMPTY
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedName()
|
||||
{
|
||||
public String getUnlocalizedName() {
|
||||
return tooltipBase + "knockback";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue