Run formatter
This commit is contained in:
parent
61c44a831b
commit
08258fd6ef
606 changed files with 13464 additions and 22975 deletions
|
@ -2,7 +2,6 @@ package WayofTime.bloodmagic.api.livingArmour;
|
|||
|
||||
import com.google.common.collect.HashMultimap;
|
||||
import com.google.common.collect.Multimap;
|
||||
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.ai.attributes.AttributeModifier;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
|
@ -11,8 +10,7 @@ import net.minecraft.nbt.NBTTagCompound;
|
|||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public abstract class LivingArmourUpgrade
|
||||
{
|
||||
public abstract class LivingArmourUpgrade {
|
||||
public static String chatBase = "chat.bloodmagic.livingArmour.upgrade.";
|
||||
public static String tooltipBase = "tooltip.bloodmagic.livingArmour.upgrade.";
|
||||
|
||||
|
@ -26,38 +24,32 @@ public abstract class LivingArmourUpgrade
|
|||
* The LivingArmourUpgrade must have a constructor that has a single integer
|
||||
* parameter. Upgrades may have other constructors, but must have one of
|
||||
* these.
|
||||
*
|
||||
* @param level
|
||||
* The level of the upgrade
|
||||
*
|
||||
* @param level The level of the upgrade
|
||||
*/
|
||||
public LivingArmourUpgrade(int level)
|
||||
{
|
||||
public LivingArmourUpgrade(int level) {
|
||||
this.level = Math.min(level, getMaxTier() - 1);
|
||||
}
|
||||
|
||||
public double getAdditionalDamageOnHit(double damage, EntityPlayer wearer, EntityLivingBase hitEntity, ItemStack weapon)
|
||||
{
|
||||
public double getAdditionalDamageOnHit(double damage, EntityPlayer wearer, EntityLivingBase hitEntity, ItemStack weapon) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public double getKnockbackOnHit(EntityPlayer wearer, EntityLivingBase hitEntity, ItemStack weapon)
|
||||
{
|
||||
public double getKnockbackOnHit(EntityPlayer wearer, EntityLivingBase hitEntity, ItemStack weapon) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Percentage of damage blocked. This stacks multiplicities with other
|
||||
* upgrades.
|
||||
*
|
||||
*
|
||||
* @return 0 for no damage blocked, 1 for full damage blocked
|
||||
*/
|
||||
public double getArmourProtection(EntityLivingBase wearer, DamageSource source)
|
||||
{
|
||||
public double getArmourProtection(EntityLivingBase wearer, DamageSource source) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int getUpgradeLevel()
|
||||
{
|
||||
public int getUpgradeLevel() {
|
||||
return this.level;
|
||||
}
|
||||
|
||||
|
@ -69,17 +61,14 @@ public abstract class LivingArmourUpgrade
|
|||
|
||||
public abstract int getCostOfUpgrade();
|
||||
|
||||
public void onTick(World world, EntityPlayer player, ILivingArmour livingArmour)
|
||||
{
|
||||
public void onTick(World world, EntityPlayer player, ILivingArmour livingArmour) {
|
||||
}
|
||||
|
||||
public Multimap<String, AttributeModifier> getAttributeModifiers()
|
||||
{
|
||||
public Multimap<String, AttributeModifier> getAttributeModifiers() {
|
||||
return HashMultimap.create();
|
||||
}
|
||||
|
||||
public double getMiningSpeedModifier(EntityPlayer player)
|
||||
{
|
||||
public double getMiningSpeedModifier(EntityPlayer player) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -87,18 +76,15 @@ public abstract class LivingArmourUpgrade
|
|||
|
||||
public abstract void readFromNBT(NBTTagCompound tag);
|
||||
|
||||
public int getRunicShielding()
|
||||
{
|
||||
public int getRunicShielding() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public boolean runOnClient()
|
||||
{
|
||||
public boolean runOnClient() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isDowngrade()
|
||||
{
|
||||
public boolean isDowngrade() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue