mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 11:45:51 +00:00
Documented UnregisterReason
This commit is contained in:
parent
5389f2a46c
commit
00ed41fcbe
@ -1,8 +1,22 @@
|
||||
package me.mrCookieSlime.Slimefun.Objects.SlimefunItem;
|
||||
|
||||
/**
|
||||
* Defines how a block handled by Slimefun is being unregistered.
|
||||
* <p>
|
||||
* It is notably used by {@link me.mrCookieSlime.Slimefun.Objects.SlimefunBlockHandler#onBreak(org.bukkit.entity.Player, org.bukkit.block.Block, SlimefunItem, UnregisterReason)}.
|
||||
*
|
||||
* @since 4.0
|
||||
*/
|
||||
public enum UnregisterReason {
|
||||
|
||||
/**
|
||||
* An explosion destroys the block.
|
||||
*/
|
||||
EXPLODE,
|
||||
PLAYER_BREAK;
|
||||
|
||||
/**
|
||||
* A player breaks the block.
|
||||
*/
|
||||
PLAYER_BREAK
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user