Enum BedDestructionInfo.Cause

java.lang.Object
java.lang.Enum<BedDestructionInfo.Cause>
de.marcely.bedwars.api.arena.BedDestructionInfo.Cause
All Implemented Interfaces:
Serializable, Comparable<BedDestructionInfo.Cause>, java.lang.constant.Constable
Enclosing class:
BedDestructionInfo

public static enum BedDestructionInfo.Cause extends Enum<BedDestructionInfo.Cause>
The specifc cause or action of the bed destruction.
  • Enum Constant Details

    • PUNCH_BLOCK

      public static final BedDestructionInfo.Cause PUNCH_BLOCK
      The player manually broke the block with his hand.
    • EXPLOSIVE

      public static final BedDestructionInfo.Cause EXPLOSIVE
      An explosive (potentially placed by somebody) caused by its impact a destruction.
    • TEAM_LEFT

      public static final BedDestructionInfo.Cause TEAM_LEFT
      All the team's members left the game.

      In contrary to REJOIN_TIMEOUT, no opportunity was given to rejoin before the elimination. They left the match and the bed was destroyed immediately with that.

      See Also:
    • REJOIN_TIMEOUT

      public static final BedDestructionInfo.Cause REJOIN_TIMEOUT
      All the team's members left the game and did not rejoin in time.

      In contrary to TEAM_LEFT, an opportunity was given to rejoin before the elimination.

      See Also:
    • PLUGIN

      public static final BedDestructionInfo.Cause PLUGIN
      The bed was destroyed by a plugin using the API.

      Note that plugins may also define another cause. This is the default value for the API if none other was specified.

      See Also:
    • DEBUG

      @Deprecated public static final BedDestructionInfo.Cause DEBUG
      Deprecated.
      May be removed at any time
      The bed was destroyed using a debug command.
  • Method Details

    • values

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

      public static BedDestructionInfo.Cause valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getChatMessage

      public Message getChatMessage()
      Get the chat message that might be used for this cause.
      Returns:
      The chat message