Guest User

Untitled

a guest
Jul 21st, 2018
38
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class GhastFireballExplosionDamage extends ObjectDamage {
  2.  
  3. public GhastFireballExplosionDamage(FileConfiguration fileConfiguration) {
  4. super(fileConfiguration);
  5. }
  6.  
  7. @Nonnull
  8. @Override
  9. public String getIconName() {
  10. return "ghast-fireball-explosion-damage";
  11. }
  12.  
  13. @Nonnull
  14. @Override
  15. public ObjectDamageType getObjectType() {
  16. return ObjectDamageType.GHAST_FIREBALL;
  17. }
  18.  
  19. @Nonnull
  20. @Override
  21. public String getCauseName() {
  22. return "Ghast Fireball";
  23. }
  24.  
  25. @Override
  26. public boolean isApplicable(EntityDamageByEntityEvent event) {
  27. return Events.getFightingEntities(event).getKey() instanceof Ghast;
  28. }
  29. }
RAW Paste Data