Package de.marcely.bedwars.api.arena
Class BedDestructionInfo
java.lang.Object
de.marcely.bedwars.api.arena.BedDestructionInfo
Data container for 
Arena.destroyBedNaturally(BedDestructionInfo).- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumThe specifc cause or action of the bed destruction.
- 
Method SummaryModifier and TypeMethodDescriptionstatic BedDestructionInfoConstruct a new instance of this data container.getCause()Get the specific cause or action of the bed destruction.@Nullable PlayerGet the player that is responsible for the bed destruction.@Nullable StringGet the explicit name of the thing that broke it (e.g.Get the team of whom the bed shall be destroyed.booleanGet whether a sound shall be played.booleanGet whether a chat message shall be sent.voidisSendingChatMessage(boolean sendMessage) Set whether a chat message shall be sent.booleanGet whether a title shall be sent.voidsetCause(BedDestructionInfo.Cause cause) Set the specific cause or action of the bed destruction.voidsetDestroyer(@Nullable Player player) Set the player that is responsible for the bed destruction.voidsetDestroyerName(@Nullable String name) Set the explicit name of the thing that broke it (e.g.voidsetPlayingSound(boolean playSound) Set whether a sound shall be played.voidsetSendingTitle(boolean sendTitle) Set whether a title shall be sent.voidsetTargetTeam(Team team) Set the team of whom the bed shall be destroyed.
- 
Method Details- 
getTargetTeamGet the team of whom the bed shall be destroyed.- Returns:
- The target team
 
- 
setTargetTeamSet the team of whom the bed shall be destroyed.- Parameters:
- team- The target team
 
- 
getDestroyerGet the player that is responsible for the bed destruction.- Returns:
- The responsible player. May be nullif there is none
 
- 
setDestroyerSet the player that is responsible for the bed destruction.- Parameters:
- player- The responsible player. May be- nullif there is none
 
- 
getDestroyerNameGet 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
 
- 
setDestroyerNameSet 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
 
- 
isPlayingSoundpublic boolean isPlayingSound()Get whether a sound shall be played.This is enabled by default. - Returns:
- Whether a sound shall be played
 
- 
setPlayingSoundpublic void setPlayingSound(boolean playSound) Set whether a sound shall be played.This is enabled by default. - Parameters:
- playSound- Whether a sound shall be played
 
- 
isSendingTitlepublic boolean isSendingTitle()Get whether a title shall be sent.This is enabled by default. - Returns:
- Whether a title shall be sent
- See Also:
 
- 
setSendingTitlepublic 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:
 
- 
isSendingChatMessagepublic boolean isSendingChatMessage()Get whether a chat message shall be sent.This is enabled by default - Returns:
- Whether a chat message shall be sent
 
- 
isSendingChatMessagepublic 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
 
- 
setCauseSet the specific cause or action of the bed destruction.- Parameters:
- cause- The cause
 
- 
getCauseGet the specific cause or action of the bed destruction.- Returns:
- The cause
 
- 
constructConstruct a new instance of this data container.- Parameters:
- targetTeam- The team of whom the bed shall be destroyed
- Returns:
- A newly constructed instance
 
 
-