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 ChatMessage
clone()
java.lang.String
getAuthor()
ChatBase
getChat()
int
getChatID()
java.lang.String
getCustomTag()
java.time.LocalDateTime
getDatetime()
java.lang.String
getDatetimeStr()
int
getRadioChannel()
java.lang.String
getText()
Color
getTextColor()
java.lang.String
getTextWithPrefix()
java.lang.String
getTextWithReplacedParentheses()
boolean
isCustomColor()
boolean
isFromDiscord()
boolean
isLocal()
boolean
isOverHeadSpeech()
boolean
isScramble()
boolean
isServerAlert()
boolean
isServerAuthor()
boolean
isShouldAttractZombies()
boolean
isShowAuthor()
boolean
isShowInChat()
void
makeFromDiscord()
void
pack(ByteBufferWriter byteBufferWriter)
void
setAuthor(java.lang.String string)
void
setCustomTag(java.lang.String string)
void
setDatetime(java.time.LocalDateTime localDateTime)
void
setLocal(boolean boolean1)
void
setOverHeadSpeech(boolean boolean1)
void
setRadioChannel(int int1)
void
setScrambledText(java.lang.String string)
void
setServerAlert(boolean boolean1)
void
setServerAuthor(boolean boolean1)
void
setShouldAttractZombies(boolean boolean1)
void
setShowInChat(boolean boolean1)
void
setText(java.lang.String string)
void
setTextColor(Color color)
java.lang.String
toString()
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:
clone
in classjava.lang.Object
-
isServerAlert
public boolean isServerAlert() -
setServerAlert
public void setServerAlert(boolean boolean1) -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-