Enum Class UnregisterReason

java.lang.Object
java.lang.Enum<UnregisterReason>
me.mrCookieSlime.Slimefun.Objects.SlimefunItem.UnregisterReason
All Implemented Interfaces:
Serializable, Comparable<UnregisterReason>, Constable

@Deprecated public enum UnregisterReason extends Enum<UnregisterReason>
Deprecated.
This enum is no longer needed
Defines how a block handled by Slimefun is being unregistered.

It is notably used by SlimefunBlockHandler.onBreak(org.bukkit.entity.Player, org.bukkit.block.Block, SlimefunItem, UnregisterReason).

Author:
TheBusyBiscuit
See Also:
  • Enum Constant Details

    • EXPLODE

      public static final UnregisterReason EXPLODE
      Deprecated.
      An explosion destroys the block.
    • PLAYER_BREAK

      public static final UnregisterReason PLAYER_BREAK
      Deprecated.
      A player breaks the block.
    • ANDROID_DIG

      public static final UnregisterReason ANDROID_DIG
      Deprecated.
      An android miner breaks the block.
  • Method Details

    • values

      public static UnregisterReason[] values()
      Deprecated.
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static UnregisterReason valueOf(String name)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null