SPIGOT-6229: Clarify PlayerItemBreakEvent documentation

This commit is contained in:
md_5 2020-11-09 18:19:49 +11:00
parent f4f2ef4c27
commit 70a529ba1f
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -8,8 +8,8 @@ import org.jetbrains.annotations.NotNull;
/** /**
* Fired when a player's item breaks (such as a shovel or flint and steel). * Fired when a player's item breaks (such as a shovel or flint and steel).
* <p> * <p>
* The item that's breaking will exist in the inventory with a stack size of * After this event, the item's amount will be set to {@code item amount - 1}
* 0. After the event, the item's durability will be reset to 0. * and its durability will be reset to 0.
*/ */
public class PlayerItemBreakEvent extends PlayerEvent { public class PlayerItemBreakEvent extends PlayerEvent {
private static final HandlerList handlers = new HandlerList(); private static final HandlerList handlers = new HandlerList();