Module gomint.api

Class EntityCollisionWithEntityEvent

    • Constructor Detail

      • EntityCollisionWithEntityEvent

        public EntityCollisionWithEntityEvent​(Entity entity,
                                              Entity collidesWith)
        Create a new entity based cancellable event
        entity - for which this event is
        collidesWith - which collides with the other entity
    • Method Detail

      • getCollidestWith

        public Entity getCollidestWith()
        Get the entity which we collide with. You can cancel the event to cancel the collision action (for example get hit by a projectile)
        entity which collides with the target entity