Class SpellsView
java.lang.Object
com.realtime.crossfire.jxclient.items.AbstractItemView
com.realtime.crossfire.jxclient.items.SpellsView
- All Implemented Interfaces:
ItemView
Provides a view of all spells a character knows.
-
Constructor Summary
ConstructorsConstructorDescriptionSpellsView(@NotNull SpellsManager spellsManager, @NotNull FacesManager facesManager) Creates a new instance. -
Method Summary
Methods inherited from class com.realtime.crossfire.jxclient.items.AbstractItemView
addLocationListener, addLocationsListener, addModified, addModifiedRange, removeLocationListener, removeLocationsListener
-
Constructor Details
-
SpellsView
public SpellsView(@NotNull @NotNull SpellsManager spellsManager, @NotNull @NotNull FacesManager facesManager) Creates a new instance.- Parameters:
spellsManager- the spells 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
-