Package zombie.chat
Class ChatMessage
java.lang.Object
zombie.chat.ChatMessage
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
ServerChatMessage
public class ChatMessage
extends java.lang.Object
implements java.lang.Cloneable
-
Constructor Summary
Constructors Constructor Description ChatMessage(ChatBase chatBase, java.lang.String string)ChatMessage(ChatBase chatBase, java.time.LocalDateTime localDateTime, java.lang.String string) -
Method Summary
Modifier and Type Method Description ChatMessageclone()java.lang.StringgetAuthor()ChatBasegetChat()intgetChatID()java.lang.StringgetCustomTag()java.time.LocalDateTimegetDatetime()java.lang.StringgetDatetimeStr()intgetRadioChannel()java.lang.StringgetText()ColorgetTextColor()java.lang.StringgetTextWithPrefix()java.lang.StringgetTextWithReplacedParentheses()booleanisCustomColor()booleanisFromDiscord()booleanisLocal()booleanisOverHeadSpeech()booleanisScramble()booleanisServerAlert()booleanisServerAuthor()booleanisShouldAttractZombies()booleanisShowAuthor()booleanisShowInChat()voidmakeFromDiscord()voidpack(ByteBufferWriter byteBufferWriter)voidsetAuthor(java.lang.String string)voidsetCustomTag(java.lang.String string)voidsetDatetime(java.time.LocalDateTime localDateTime)voidsetLocal(boolean boolean1)voidsetOverHeadSpeech(boolean boolean1)voidsetRadioChannel(int int1)voidsetScrambledText(java.lang.String string)voidsetServerAlert(boolean boolean1)voidsetServerAuthor(boolean boolean1)voidsetShouldAttractZombies(boolean boolean1)voidsetShowInChat(boolean boolean1)voidsetText(java.lang.String string)voidsetTextColor(Color color)java.lang.StringtoString()Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ChatMessage
-
ChatMessage
public ChatMessage(ChatBase chatBase, java.time.LocalDateTime localDateTime, java.lang.String string)
-
-
Method Details
-
isShouldAttractZombies
public boolean isShouldAttractZombies() -
setShouldAttractZombies
public void setShouldAttractZombies(boolean boolean1) -
isLocal
public boolean isLocal() -
setLocal
public void setLocal(boolean boolean1) -
getTextWithReplacedParentheses
public java.lang.String getTextWithReplacedParentheses() -
setScrambledText
public void setScrambledText(java.lang.String string) -
getRadioChannel
public int getRadioChannel() -
setRadioChannel
public void setRadioChannel(int int1) -
isServerAuthor
public boolean isServerAuthor() -
setServerAuthor
public void setServerAuthor(boolean boolean1) -
isFromDiscord
public boolean isFromDiscord() -
makeFromDiscord
public void makeFromDiscord() -
isOverHeadSpeech
public boolean isOverHeadSpeech() -
setOverHeadSpeech
public void setOverHeadSpeech(boolean boolean1) -
isShowInChat
public boolean isShowInChat() -
setShowInChat
public void setShowInChat(boolean boolean1) -
getDatetime
public java.time.LocalDateTime getDatetime() -
getDatetimeStr
public java.lang.String getDatetimeStr() -
setDatetime
public void setDatetime(java.time.LocalDateTime localDateTime) -
isShowAuthor
public boolean isShowAuthor() -
getAuthor
public java.lang.String getAuthor() -
setAuthor
public void setAuthor(java.lang.String string) -
getChat
-
getChatID
public int getChatID() -
getText
public java.lang.String getText() -
setText
public void setText(java.lang.String string) -
getTextWithPrefix
public java.lang.String getTextWithPrefix() -
isScramble
public boolean isScramble() -
getCustomTag
public java.lang.String getCustomTag() -
setCustomTag
public void setCustomTag(java.lang.String string) -
getTextColor
-
setTextColor
-
isCustomColor
public boolean isCustomColor() -
pack
-
clone
- Overrides:
clonein classjava.lang.Object
-
isServerAlert
public boolean isServerAlert() -
setServerAlert
public void setServerAlert(boolean boolean1) -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-