use of net.minecraft.entity.ai.attributes.AttributeModifier in project Gaia-Dimension by Andromander.
the class GDCorruptWarriorSword method getItemAttributeModifiers.
// TODO: Make this sword special with effects. Make sure the effects look corrupt
// TODO: [FUTURE] Can be used to unlock Predator Dungeons
// We will need this in order to make the weapon slow
@Override
@Nonnull
public Multimap<String, AttributeModifier> getItemAttributeModifiers(EntityEquipmentSlot equipmentSlot) {
Multimap<String, AttributeModifier> multimap = super.getItemAttributeModifiers(equipmentSlot);
if (equipmentSlot == EntityEquipmentSlot.MAINHAND) {
// This is not our speed anymore
multimap.removeAll(SharedMonsterAttributes.ATTACK_SPEED.getName());
// Speed is set to 0.5; 1.1 less than normal
multimap.put(SharedMonsterAttributes.ATTACK_SPEED.getName(), new AttributeModifier(ATTACK_SPEED_MODIFIER, "Weapon modifier", -3.5, 0));
}
return multimap;
}
use of net.minecraft.entity.ai.attributes.AttributeModifier in project Gaia-Dimension by Andromander.
the class GDGaiaBaronSword method getItemAttributeModifiers.
// TODO: Make this sword special with effects
// TODO: [FUTURE] Can be used to unlock Unknown Stage 3 Final Boss Structure
// We will need this in order to make the weapon speedy
@Override
@Nonnull
public Multimap<String, AttributeModifier> getItemAttributeModifiers(EntityEquipmentSlot equipmentSlot) {
Multimap<String, AttributeModifier> multimap = super.getItemAttributeModifiers(equipmentSlot);
if (equipmentSlot == EntityEquipmentSlot.MAINHAND) {
// This is not our speed anymore
multimap.removeAll(SharedMonsterAttributes.ATTACK_SPEED.getName());
// Speed is set to 2.2; 0.6 more than normal
multimap.put(SharedMonsterAttributes.ATTACK_SPEED.getName(), new AttributeModifier(ATTACK_SPEED_MODIFIER, "Weapon modifier", -1.8, 0));
}
return multimap;
}
use of net.minecraft.entity.ai.attributes.AttributeModifier in project Gaia-Dimension by Andromander.
the class GDGaiaDuchessSword method getItemAttributeModifiers.
// TODO: Make this sword have projectiles, but lowers durability by 2
// TODO: [FUTURE] Can be used to unlock Unknown Stage 4 Final Boss Structure
// We will need this in order to make the weapon slow
@Override
@Nonnull
public Multimap<String, AttributeModifier> getItemAttributeModifiers(EntityEquipmentSlot equipmentSlot) {
Multimap<String, AttributeModifier> multimap = super.getItemAttributeModifiers(equipmentSlot);
if (equipmentSlot == EntityEquipmentSlot.MAINHAND) {
// This is not our speed anymore
multimap.removeAll(SharedMonsterAttributes.ATTACK_SPEED.getName());
// Speed is set to 1.8; 0.2 less than normal
multimap.put(SharedMonsterAttributes.ATTACK_SPEED.getName(), new AttributeModifier(ATTACK_SPEED_MODIFIER, "Weapon modifier", -2.2, 0));
}
return multimap;
}
use of net.minecraft.entity.ai.attributes.AttributeModifier in project Gaia-Dimension by Andromander.
the class GDGaiaDukeSword method getItemAttributeModifiers.
// TODO: Make this sword special with effects
// TODO: [FUTURE] Can be used to unlock Unknown Stage 2 Final Boss Structure
// We will need this in order to make the weapon slow
@Override
@Nonnull
public Multimap<String, AttributeModifier> getItemAttributeModifiers(EntityEquipmentSlot equipmentSlot) {
Multimap<String, AttributeModifier> multimap = super.getItemAttributeModifiers(equipmentSlot);
if (equipmentSlot == EntityEquipmentSlot.MAINHAND) {
// This is not our speed anymore
multimap.removeAll(SharedMonsterAttributes.ATTACK_SPEED.getName());
// Speed is set to 1; 0.6 less than normal
multimap.put(SharedMonsterAttributes.ATTACK_SPEED.getName(), new AttributeModifier(ATTACK_SPEED_MODIFIER, "Weapon modifier", -3, 0));
}
return multimap;
}
use of net.minecraft.entity.ai.attributes.AttributeModifier in project Gaia-Dimension by Andromander.
the class GDMalachiteGuardSword method getItemAttributeModifiers.
// TODO: Make this sword special with effects
// TODO: [FUTURE] Can be used to unlock Predator Dungeons
// We will need this in order to make the weapon slow
@Override
@Nonnull
public Multimap<String, AttributeModifier> getItemAttributeModifiers(EntityEquipmentSlot equipmentSlot) {
Multimap<String, AttributeModifier> multimap = super.getItemAttributeModifiers(equipmentSlot);
if (equipmentSlot == EntityEquipmentSlot.MAINHAND) {
// This is not our speed anymore
multimap.removeAll(SharedMonsterAttributes.ATTACK_SPEED.getName());
// Speed is set to 1; 0.6 less than normal
multimap.put(SharedMonsterAttributes.ATTACK_SPEED.getName(), new AttributeModifier(ATTACK_SPEED_MODIFIER, "Weapon modifier", -3, 0));
}
return multimap;
}
Aggregations