use of org.spongepowered.api.event.cause.entity.damage.DamageModifierType in project SpongeCommon by SpongePowered.
the class DamageModifierTypeRegistryModule method registerDefaults.
@Override
public void registerDefaults() {
// TODO - convert these to properly use the sponge id.
this.modifierTypeMap.put("weapon_enchantment", new SpongeDamageModifierType("Weapon Enchantment", "weapon_enchantment"));
this.modifierTypeMap.put("offensive_potion_effect", new SpongeDamageModifierType("Offensive PotionEffect", "offensive_potion_effect"));
this.modifierTypeMap.put("defensive_potion_effect", new SpongeDamageModifierType("Defensive PotionEffect", "defensive_potion_effect"));
this.modifierTypeMap.put("negative_potion_effect", new SpongeDamageModifierType("Negative PotionEffect", "negative_potion_effect"));
this.modifierTypeMap.put("hard_hat", new SpongeDamageModifierType("Hard Hat", "hard_hat"));
this.modifierTypeMap.put("shield", new SpongeDamageModifierType("Shield", "shield"));
this.modifierTypeMap.put("blocking", this.modifierTypeMap.get("shield"));
this.modifierTypeMap.put("armor", new SpongeDamageModifierType("Armor", "armor"));
this.modifierTypeMap.put("armor_enchantment", new SpongeDamageModifierType("Armor Enchantment", "armor_enchantment"));
this.modifierTypeMap.put("magic", new SpongeDamageModifierType("Magic", "magic"));
this.modifierTypeMap.put("difficulty", new SpongeDamageModifierType("Difficulty", "difficulty"));
this.modifierTypeMap.put("absorption", new SpongeDamageModifierType("Absorption", "absorption"));
this.modifierTypeMap.put("critical_hit", new SpongeDamageModifierType("Critical Hit", "critical_hit"));
this.modifierTypeMap.put("attack_cooldown", new SpongeDamageModifierType("Attack Cooldown", "attack_cooldown"));
final DamageModifierType sweeping = new SpongeDamageModifierType("Sweeping", "sweeping");
this.modifierTypeMap.put("sweeping", sweeping);
// TODO: remove
this.modifierTypeMap.put("sweaping", sweeping);
}
Aggregations