Advertisement
Guest User

Untitled

a guest
Sep 30th, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. package org.bukkit.event.entity;
  2.  
  3. import com.google.common.base.Function;
  4. import java.util.Map;
  5. import org.bukkit.entity.Entity;
  6.  
  7. public class EntityDamageByEntityEvent extends EntityDamageEvent
  8. {
  9. private final Entity damager;
  10.  
  11. @Deprecated
  12. public EntityDamageByEntityEvent(Entity damager, Entity damagee, EntityDamageEvent.DamageCause cause, int damage)
  13. {
  14. this(damager, damagee, cause, damage);
  15. }
  16.  
  17. @Deprecated
  18. public EntityDamageByEntityEvent(Entity damager, Entity damagee, EntityDamageEvent.DamageCause cause, double damage) {
  19. super(damagee, cause, damage);
  20. this.damager = damager;
  21. }
  22.  
  23. public EntityDamageByEntityEvent(Entity damager, Entity damagee, EntityDamageEvent.DamageCause cause, Map<EntityDamageEvent.DamageModifier, Double> modifiers, Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) {
  24. super(damagee, cause, modifiers, modifierFunctions);
  25. this.damager = damager;
  26. }
  27.  
  28. public Entity getDamager()
  29. {
  30. return this.damager;
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement