Package org.bukkit

Enum Class ExplosionResult

java.lang.Object
java.lang.Enum<ExplosionResult>
org.bukkit.ExplosionResult
All Implemented Interfaces:
Serializable, Comparable<ExplosionResult>, Constable

@Experimental public enum ExplosionResult extends Enum<ExplosionResult>
Represents the outcome of an explosion.
  • Enum Constant Details

    • KEEP

      public static final ExplosionResult KEEP
      Represents an explosion where no change took place. This is the case when GameRule.MOB_GRIEFING is disabled.
    • DESTROY

      public static final ExplosionResult DESTROY
      Represents an explosion where all destroyed blocks drop their items. This is the case when GameRule.TNT_EXPLOSION_DROP_DECAY or GameRule.BLOCK_EXPLOSION_DROP_DECAY is disabled.
    • DESTROY_WITH_DECAY

      public static final ExplosionResult DESTROY_WITH_DECAY
      Represents an explosion where explosions cause only some blocks to drop.
    • TRIGGER_BLOCK

      public static final ExplosionResult TRIGGER_BLOCK
      Represents an explosion where a block change/update has happened. For example, when a wind charge is used it will cause nearby buttons, levers and bells to be activated.
  • Method Details

    • values

      public static ExplosionResult[] values()
      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 ExplosionResult valueOf(String name)
      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