Moved living armor notifications to action bar
This commit is contained in:
parent
38e54a4e2f
commit
6656fe58dc
|
@ -158,7 +158,7 @@ public class ItemLivingArmour extends ItemArmor implements ISpecialArmor, IMeshP
|
|||
ItemStack leggings = player.getItemStackFromSlot(EntityEquipmentSlot.LEGS);
|
||||
ItemStack boots = player.getItemStackFromSlot(EntityEquipmentSlot.FEET);
|
||||
|
||||
if (helmet == null || leggings == null || boots == null)
|
||||
if (helmet.isEmpty() || leggings.isEmpty() || boots.isEmpty())
|
||||
{
|
||||
damageAmount *= (armourReduction);
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ import net.minecraft.inventory.EntityEquipmentSlot;
|
|||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.nbt.NBTTagList;
|
||||
import net.minecraft.util.text.TextComponentString;
|
||||
import net.minecraft.world.World;
|
||||
import WayofTime.bloodmagic.api.iface.IUpgradeTrainer;
|
||||
import WayofTime.bloodmagic.api.livingArmour.ILivingArmour;
|
||||
|
@ -175,7 +176,7 @@ public class LivingArmour implements ILivingArmour
|
|||
@Override
|
||||
public void notifyPlayerOfUpgrade(EntityPlayer user, LivingArmourUpgrade upgrade)
|
||||
{
|
||||
ChatUtil.sendChat(user, TextHelper.localizeEffect(chatBase + "newUpgrade"));
|
||||
user.sendStatusMessage(new TextComponentString(TextHelper.localizeEffect(chatBase + "newUpgrade")), true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -4,6 +4,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
|||
import net.minecraft.init.MobEffects;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.util.text.TextComponentString;
|
||||
import net.minecraft.world.World;
|
||||
import WayofTime.bloodmagic.api.Constants;
|
||||
import WayofTime.bloodmagic.api.livingArmour.ILivingArmour;
|
||||
|
@ -33,7 +34,7 @@ public class LivingArmourUpgradeFireResist extends LivingArmourUpgrade
|
|||
player.addPotionEffect(new PotionEffect(MobEffects.FIRE_RESISTANCE, fireResistDuration[this.level]));
|
||||
fireCooldown = fireCooldownTime[this.level];
|
||||
|
||||
ChatUtil.sendNoSpam(player, TextHelper.localizeEffect(chatBase + "fireRemove"));
|
||||
player.sendStatusMessage(new TextComponentString(TextHelper.localizeEffect(chatBase + "fireRemove")), true);
|
||||
|
||||
} else if (fireCooldown > 0)
|
||||
{
|
||||
|
|
|
@ -4,6 +4,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
|||
import net.minecraft.init.MobEffects;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.util.text.TextComponentString;
|
||||
import net.minecraft.world.World;
|
||||
import WayofTime.bloodmagic.api.Constants;
|
||||
import WayofTime.bloodmagic.api.livingArmour.ILivingArmour;
|
||||
|
@ -90,7 +91,7 @@ public class LivingArmourUpgradeGrimReaperSprint extends LivingArmourUpgrade
|
|||
}
|
||||
|
||||
deathTimer = rebirthDelay[this.level];
|
||||
ChatUtil.sendNoSpam(player, TextHelper.localizeEffect(chatBase + "grimReaper"));
|
||||
player.sendStatusMessage(new TextComponentString(TextHelper.localizeEffect(chatBase + "grimReaper")), true);
|
||||
}
|
||||
|
||||
public boolean canSavePlayer(EntityPlayer player)
|
||||
|
|
|
@ -4,6 +4,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
|||
import net.minecraft.init.MobEffects;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.util.text.TextComponentString;
|
||||
import net.minecraft.world.World;
|
||||
import WayofTime.bloodmagic.api.Constants;
|
||||
import WayofTime.bloodmagic.api.livingArmour.ILivingArmour;
|
||||
|
@ -35,7 +36,7 @@ public class LivingArmourUpgradePoisonResist extends LivingArmourUpgrade
|
|||
player.removePotionEffect(MobEffects.POISON);
|
||||
poisonCooldown = poisonCooldownTime[this.level];
|
||||
|
||||
ChatUtil.sendNoSpam(player, TextHelper.localize(chatBase + "poisonRemove"));
|
||||
player.sendStatusMessage(new TextComponentString(TextHelper.localize(chatBase + "poisonRemove")), true);
|
||||
}
|
||||
} else if (poisonCooldown > 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue