net.minestom.server.event.entity.projectile.ProjectileCollideWithEntityEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minestom-snapshots Show documentation
Show all versions of minestom-snapshots Show documentation
1.20.4 Lightweight Minecraft server
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;
}
}