Copy javadocs for PlayerBlockIteractEvent#setBlockingItemUse (#1814)

This commit is contained in:
Zak Shearman 2023-05-13 15:41:02 +03:00 committed by GitHub
parent e160cbdecd
commit a0929db8b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}