mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-02 11:22:01 +01:00
Add BellRingEvent
Add a new event, BellRingEvent, to trigger whenever a player rings a village bell. Passes along the bell block and the player who rang it.
This commit is contained in:
parent
48046af5ef
commit
3670ee6672
@ -0,0 +1,22 @@
|
||||
package io.papermc.paper.event.block;
|
||||
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.block.BlockFace;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* Called when a bell is rung.
|
||||
*
|
||||
* @deprecated use {@link org.bukkit.event.block.BellRingEvent}
|
||||
*/
|
||||
@Deprecated(since = "1.19.4")
|
||||
public class BellRingEvent extends org.bukkit.event.block.BellRingEvent {
|
||||
|
||||
@ApiStatus.Internal
|
||||
public BellRingEvent(@NotNull Block block, @NotNull BlockFace direction, @Nullable Entity entity) {
|
||||
super(block, direction, entity);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user