Module gomint.api

Class ProjectileHitBlocksEvent


  • public class ProjectileHitBlocksEvent
    extends CancellableEvent
    Version:
    1.0
    Author:
    geNAZt
    • Constructor Detail

      • ProjectileHitBlocksEvent

        public ProjectileHitBlocksEvent​(Set<Block> blocks,
                                        EntityProjectile projectile)
        Create a new entity based cancellable event
        Parameters:
        blocks - which got hit by the projectile
        projectile - which hit the entity
    • Method Detail

      • getProjectile

        public EntityProjectile getProjectile()
        Get the projectile which hit the entity
        Returns:
        projectile which hit the entity
      • getBlocks

        public Set<Block> getBlocks()
        Get the blocks which got hit by the projectile
        Returns:
        blocks which got hit