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
1 changed files with 22 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue