public final class ChatEntryModelClass
extends java.lang.Object
| Constructor | Description |
|---|---|
ChatEntryModelClass(java.lang.String labelParam,
NiftyImage iconParam) |
Constructor excepting the line and the icon.
|
ChatEntryModelClass(java.lang.String labelParam,
NiftyImage iconParam,
java.lang.String style) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
|
NiftyImage |
getIcon() |
Return the supplied icon.
|
java.lang.String |
getLabel() |
Return the supplied label.
|
java.lang.String |
getStyle() |
Returns the style of the current entry.
|
int |
hashCode() |
|
void |
setIcon(NiftyImage icon) |
Supply a new icon which replaces the current one.
|
void |
setLabel(java.lang.String label) |
Set a new label to replace the current one.
|
void |
setStyle(java.lang.String style) |
Supply a new style which replaces the current one, null reverts to the
default style from the XML.
|
java.lang.String |
toString() |
public ChatEntryModelClass(@Nonnull
java.lang.String labelParam,
NiftyImage iconParam)
labelParam - The label to put in the entry. This can be either a chat line or a player name.iconParam - The icon to display in the entry, this one is optional.public ChatEntryModelClass(@Nonnull
java.lang.String labelParam,
NiftyImage iconParam,
java.lang.String style)
@Nonnull public java.lang.String toString()
toString in class java.lang.Object@Nonnull public java.lang.String getLabel()
public void setLabel(@Nonnull
java.lang.String label)
label - The new label.@Nullable public NiftyImage getIcon()
public void setIcon(@Nullable
NiftyImage icon)
icon - The icon.@Nullable public java.lang.String getStyle()
public void setStyle(@Nullable
java.lang.String style)
style - The new style.public boolean equals(@Nullable
java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2018. All rights reserved.