All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minestom.server.event.entity.projectile.ProjectileCollideWithEntityEvent Maven / Gradle / Ivy

There is a newer version: 7320437640
Show newest version
package net.minestom.server.event.entity.projectile;

import net.minestom.server.coordinate.Pos;
import net.minestom.server.entity.Entity;
import org.jetbrains.annotations.NotNull;

public final class ProjectileCollideWithEntityEvent extends ProjectileCollideEvent {

    private final @NotNull Entity target;

    public ProjectileCollideWithEntityEvent(
            @NotNull Entity projectile,
            @NotNull Pos position,
            @NotNull Entity target
    ) {
        super(projectile, position);
        this.target = target;
    }

    public @NotNull Entity getTarget() {
        return target;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy