Class BedDestructionInfo

java.lang.Object
de.marcely.bedwars.api.arena.BedDestructionInfo

public class BedDestructionInfo extends Object
  • Method Details

    • getTargetTeam

      public Team getTargetTeam()
      Get the team of whom the bed shall be destroyed.
      Returns:
      The target team
    • setTargetTeam

      public void setTargetTeam(Team team)
      Set the team of whom the bed shall be destroyed.
      Parameters:
      team - The target team
    • getDestroyer

      @Nullable public @Nullable Player getDestroyer()
      Get the player that is responsible for the bed destruction.
      Returns:
      The responsible player. May be null if there is none
    • setDestroyer

      public void setDestroyer(@Nullable @Nullable Player player)
      Set the player that is responsible for the bed destruction.
      Parameters:
      player - The responsible player. May be null if there is none
    • getDestroyerName

      @Nullable public @Nullable String getDestroyerName()
      Get the explicit name of the thing that broke it (e.g. TNT).

      Tries to fallback to e.g. the player name if none is given.

      Returns:
      The name of the thing that broke it. May be null
    • setDestroyerName

      public void setDestroyerName(@Nullable @Nullable String name)
      Set the explicit name of the thing that broke it (e.g. TNT).

      Tries to fallback to e.g. the player name if none is given.

      Parameters:
      name - The name of the thing that broke it. May be null
    • isPlayingSound

      public boolean isPlayingSound()
      Get whether a sound shall be played.

      This is enabled by default.

      Returns:
      Whether a sound shall be played
    • setPlayingSound

      public void setPlayingSound(boolean playSound)
      Set whether a sound shall be played.

      This is enabled by default.

      Parameters:
      playSound - Whether a sound shall be played
    • isSendingTitle

      public boolean isSendingTitle()
      Get whether a title shall be sent.

      This is enabled by default.

      Returns:
      Whether a title shall be sent
      See Also:
    • setSendingTitle

      public void setSendingTitle(boolean sendTitle)
      Set whether a title shall be sent.

      This is enabled by default.

      Parameters:
      sendTitle - Whether a title shall be sent
      See Also:
    • isSendingChatMessage

      public boolean isSendingChatMessage()
      Get whether a chat message shall be sent.

      This is enabled by default

      Returns:
      Whether a chat message shall be sent
    • isSendingChatMessage

      public void isSendingChatMessage(boolean sendMessage)
      Set whether a chat message shall be sent.

      This is enabled by default

      Parameters:
      sendMessage - Whether a chat message shall be sent
    • construct

      public static BedDestructionInfo construct(Team targetTeam)
      Construct a new instance of this data container.
      Parameters:
      targetTeam - The team of whom the bed shall be destroyed
      Returns:
      A newly constructed instance