Class QuestsView
java.lang.Object
com.realtime.crossfire.jxclient.items.AbstractItemView
com.realtime.crossfire.jxclient.items.QuestsView
- All Implemented Interfaces:
ItemView
Provides a view of all quests a character is doing.
-
Constructor Summary
ConstructorsConstructorDescriptionQuestsView(@NotNull QuestsManager questsManager, @NotNull FacesManager facesManager) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescription@Nullable CfItemgetItem(int index) Returns theCfItemin a given slot.intgetSize()Returns the number of items.voidsetFilter(@NotNull QuestsFilter filter) Sets theQuestsFilter.Methods inherited from class com.realtime.crossfire.jxclient.items.AbstractItemView
addLocationListener, addLocationsListener, addModified, addModifiedRange, removeLocationListener, removeLocationsListener
-
Constructor Details
-
QuestsView
public QuestsView(@NotNull @NotNull QuestsManager questsManager, @NotNull @NotNull FacesManager facesManager) Creates a new instance.- Parameters:
questsManager- the quests to displayfacesManager- the faces manager for retrieving face information
-
-
Method Details
-
getSize
public int getSize()Description copied from interface:ItemViewReturns the number of items.- Returns:
- the number of items
-
getItem
Description copied from interface:ItemViewReturns theCfItemin a given slot.- Parameters:
index- the slot index- Returns:
- the item or
nullif the slot is empty
-
setFilter
Sets theQuestsFilter.- Parameters:
filter- the new quests filter
-