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

net.minestom.server.event.entity.projectile.ProjectileCollideWithBlockEvent 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 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy