mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-01 21:11:33 +01:00
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;
|
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) {
|
public void setBlockingItemUse(boolean blocks) {
|
||||||
this.blocksItemUse = blocks;
|
this.blocksItemUse = blocks;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user