net.minestom.server.event.entity.projectile.ProjectileCollideWithBlockEvent 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 net.minestom.server.instance.block.Block;
import org.jetbrains.annotations.NotNull;
public final class ProjectileCollideWithBlockEvent extends ProjectileCollideEvent {
private final @NotNull Block block;
public ProjectileCollideWithBlockEvent(
@NotNull Entity projectile,
@NotNull Pos position,
@NotNull Block block
) {
super(projectile, position);
this.block = block;
}
public @NotNull Block getBlock() {
return block;
}
}