Class KnowledgeItem
java.lang.Object
com.realtime.crossfire.jxclient.knowledge.KnowledgeItem
Describes a Crossfire spell.
-
Constructor Summary
ConstructorsConstructorDescriptionKnowledgeItem(int knowledgeIndex, @NotNull String type, @NotNull String title, int faceNum) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKnowledgeItemListener(@NotNull KnowledgeItemListener listener) Adds aKnowledgeItemListenerto be notified of changes.intReturns the face number.intReturns the tag ID.@NotNull StringReturns the description.@NotNull StringReturns a description for this spell to be used in tooltips.@NotNull StringgetType()Returns the knowledge's type.voidremoveKnowledgeItemListener(@NotNull KnowledgeItemListener listener) Removes aKnowledgeItemListenerto be notified of changes.@NotNull StringtoString()
-
Constructor Details
-
Method Details
-
getKnowledgeIndex
public int getKnowledgeIndex()Returns the tag ID.- Returns:
- the tag ID
-
getKnowledgeTitle
Returns the description.- Returns:
- the description
-
getFaceNum
public int getFaceNum()Returns the face number.- Returns:
- the face number
-
toString
-
getTooltipText
Returns a description for this spell to be used in tooltips.- Returns:
- the tooltip text
-
addKnowledgeItemListener
Adds aKnowledgeItemListenerto be notified of changes.- Parameters:
listener- the listener to add
-
removeKnowledgeItemListener
Removes aKnowledgeItemListenerto be notified of changes.- Parameters:
listener- the listener to remove
-
getType
Returns the knowledge's type.- Returns:
- the type
-