From a0929db8b019980c69e47fa88138f8b9d5ed8827 Mon Sep 17 00:00:00 2001 From: Zak Shearman Date: Sat, 13 May 2023 15:41:02 +0300 Subject: [PATCH] Copy javadocs for PlayerBlockIteractEvent#setBlockingItemUse (#1814) --- .../server/event/player/PlayerBlockInteractEvent.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/net/minestom/server/event/player/PlayerBlockInteractEvent.java b/src/main/java/net/minestom/server/event/player/PlayerBlockInteractEvent.java index e664bbd29..70bba6b58 100644 --- a/src/main/java/net/minestom/server/event/player/PlayerBlockInteractEvent.java +++ b/src/main/java/net/minestom/server/event/player/PlayerBlockInteractEvent.java @@ -48,6 +48,11 @@ public class PlayerBlockInteractEvent implements PlayerInstanceEvent, BlockEvent return blocksItemUse; } + /** + * Sets if the event should block the item use. + * + * @param blocks true if the item use should be blocked, false otherwise + */ public void setBlockingItemUse(boolean blocks) { this.blocksItemUse = blocks; }