Potential fix for Zephyr ritual dupe bug, some adjustments to rendering of a fancy new health bar.

This commit is contained in:
WayofTime 2015-01-12 17:04:44 -05:00
parent 8315dcf864
commit ca74a33a12
8 changed files with 110 additions and 38 deletions

View file

@ -1,10 +1,17 @@
package WayofTime.alchemicalWizardry.common.items.armour;
import java.util.UUID;
import net.minecraft.client.model.ModelBiped;
import net.minecraft.entity.Entity;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.attributes.AttributeModifier;
import net.minecraft.item.ItemStack;
import WayofTime.alchemicalWizardry.common.renderer.model.ModelOmegaEarth;
import com.google.common.collect.HashMultimap;
import com.google.common.collect.Multimap;
public class OmegaArmourEarth extends OmegaArmour
{
public OmegaArmourEarth(int armorType)
@ -29,4 +36,17 @@ public class OmegaArmourEarth extends OmegaArmour
{
return new ModelOmegaEarth(0.5f, false, false, true, false);
}
@Override
public Multimap getItemAttributeModifiers()
{
Multimap map = HashMultimap.create();
map.put(SharedMonsterAttributes.knockbackResistance.getAttributeUnlocalizedName(), new AttributeModifier(new UUID(179618 /** Random number **/, armorType), "Armor modifier" + armorType, getKnockbackResist(), 0));
return map;
}
public float getKnockbackResist()
{
return 0.25f;
}
}