Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class GhastFireballExplosionDamage extends ObjectDamage {
- public GhastFireballExplosionDamage(FileConfiguration fileConfiguration) {
- super(fileConfiguration);
- }
- @Nonnull
- @Override
- public String getIconName() {
- return "ghast-fireball-explosion-damage";
- }
- @Nonnull
- @Override
- public ObjectDamageType getObjectType() {
- return ObjectDamageType.GHAST_FIREBALL;
- }
- @Nonnull
- @Override
- public String getCauseName() {
- return "Ghast Fireball";
- }
- @Override
- public boolean isApplicable(EntityDamageByEntityEvent event) {
- return Events.getFightingEntities(event).getKey() instanceof Ghast;
- }
- }
Add Comment
Please, Sign In to add comment