2016-04-14 16:24:03 +00:00
|
|
|
package me.mrCookieSlime.Slimefun.Objects.SlimefunItem;
|
|
|
|
|
2017-08-14 15:43:26 +00:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2016-04-14 16:24:03 +00:00
|
|
|
public enum UnregisterReason {
|
|
|
|
|
2017-08-14 15:43:26 +00:00
|
|
|
/**
|
|
|
|
* An explosion destroys the block.
|
|
|
|
*/
|
2016-04-14 16:24:03 +00:00
|
|
|
EXPLODE,
|
2017-08-14 15:43:26 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A player breaks the block.
|
|
|
|
*/
|
|
|
|
PLAYER_BREAK
|
2016-04-14 16:24:03 +00:00
|
|
|
|
|
|
|
}
|