1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Documented UnregisterReason

This commit is contained in:
Poslovitch 2017-08-14 17:43:26 +02:00
parent 5389f2a46c
commit 00ed41fcbe

View File

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