use of net.minecraft.entity.ai.attributes.AttributeModifier in project ArsMagica2 by Mithion.
the class ItemWinterGuardianArm method getItemAttributeModifiers.
@Override
public Multimap getItemAttributeModifiers() {
Multimap multimap = super.getItemAttributeModifiers();
multimap.put(SharedMonsterAttributes.attackDamage.getAttributeUnlocalizedName(), new AttributeModifier(field_111210_e, "Weapon modifier", 6, 0));
return multimap;
}
use of net.minecraft.entity.ai.attributes.AttributeModifier in project ArsMagica2 by Mithion.
the class ItemNatureGuardianSickle method getItemAttributeModifiers.
@Override
public Multimap getItemAttributeModifiers() {
Multimap multimap = super.getItemAttributeModifiers();
multimap.put(SharedMonsterAttributes.attackDamage.getAttributeUnlocalizedName(), new AttributeModifier(field_111210_e, "Weapon modifier", 7, 0));
return multimap;
}
use of net.minecraft.entity.ai.attributes.AttributeModifier in project ImmersiveEngineering by BluSunrize.
the class ItemRevolver method getAttributeModifiers.
@Override
public Multimap getAttributeModifiers(EntityEquipmentSlot slot, ItemStack stack) {
Multimap multimap = super.getAttributeModifiers(slot, stack);
if (slot == EntityEquipmentSlot.MAINHAND) {
double melee = getUpgrades(stack).getDouble("melee");
if (melee != 0)
multimap.put(SharedMonsterAttributes.ATTACK_DAMAGE.getAttributeUnlocalizedName(), new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", melee, 0));
double speed = getUpgrades(stack).getDouble("speed");
if (speed != 0)
multimap.put(SharedMonsterAttributes.MOVEMENT_SPEED.getAttributeUnlocalizedName(), new AttributeModifier(speedModUUID, "Weapon modifier", speed, 1));
}
return multimap;
}
use of net.minecraft.entity.ai.attributes.AttributeModifier in project Skree by Skelril.
the class ICustomTool method getItemAttributeModifiers.
/**
* Gets a map of item attribute modifiers, used by ItemSword to increase hit damage.
*/
@SuppressWarnings("unchecked")
default default Multimap<String, AttributeModifier> getItemAttributeModifiers(EntityEquipmentSlot equipmentSlot) {
Multimap<String, AttributeModifier> multimap = __superGetItemAttributeModifiers(equipmentSlot);
if (equipmentSlot == EntityEquipmentSlot.MAINHAND) {
multimap.put(SharedMonsterAttributes.ATTACK_DAMAGE.getAttributeUnlocalizedName(), new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Tool modifier", __getHitPower(), 0));
multimap.put(SharedMonsterAttributes.ATTACK_SPEED.getAttributeUnlocalizedName(), new AttributeModifier(ATTACK_SPEED_MODIFIER, "Tool modifier", __getAttackSpeed(), 0));
}
return multimap;
}
use of net.minecraft.entity.ai.attributes.AttributeModifier in project Skree by Skelril.
the class ICustomArmor method getItemAttributeModifiers.
default default Multimap<String, AttributeModifier> getItemAttributeModifiers(EntityEquipmentSlot equipmentSlot) {
Multimap<String, AttributeModifier> multimap = __superGetItemAttributeModifiers(equipmentSlot);
if (equipmentSlot == __getSlotType()) {
multimap.put(SharedMonsterAttributes.ARMOR.getAttributeUnlocalizedName(), new AttributeModifier(ARMOR_MODIFIERS[equipmentSlot.getIndex()], "Armor modifier", (double) __getDamageReductionAmount(), 0));
multimap.put(SharedMonsterAttributes.ARMOR_TOUGHNESS.getAttributeUnlocalizedName(), new AttributeModifier(ARMOR_MODIFIERS[equipmentSlot.getIndex()], "Armor toughness", (double) __getToughness(), 0));
}
return multimap;
}
Aggregations