Module gomint.api

Class EntityDamageByEntityEvent


  • public class EntityDamageByEntityEvent
    extends EntityDamageEvent
    Version:
    1.0
    Author:
    geNAZt
    • Constructor Detail

      • EntityDamageByEntityEvent

        public EntityDamageByEntityEvent​(Entity entity,
                                         Entity attacker,
                                         EntityDamageEvent.DamageSource damageSource,
                                         float damage)
        Create a new entity based cancellable event
        Parameters:
        entity - for which this event is
        attacker - which attacked this entity
        damageSource - with which the entity should be attacked
        damage - which should be dealt
    • Method Detail

      • getAttacker

        public Entity getAttacker()
        Get the entity which attacked
        Returns:
        attacking entity