mirror of https://github.com/Minestom/Minestom.git
Copy javadocs for PlayerBlockIteractEvent#setBlockingItemUse (#1814)
This commit is contained in:
parent
e160cbdecd
commit
a0929db8b0
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue