Class FloorView
- java.lang.Object
-
- com.realtime.crossfire.jxclient.items.AbstractItemView
-
- com.realtime.crossfire.jxclient.items.FloorView
-
- All Implemented Interfaces:
ItemView
public class FloorView extends AbstractItemView
Provides a view to all items comprising the current floor view.If an opened container exists, the floor view consists of the container in the first slot followed by the contained items. Otherwise all objects in location
0are returned.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCurrentFloorTag()Returns the current floor location.@Nullable CfItemgetItem(int index)Returns theCfItemin a given slot.intgetSize()Returns the number of items.-
Methods inherited from class com.realtime.crossfire.jxclient.items.AbstractItemView
addLocationListener, addLocationsListener, addModified, addModifiedRange, removeLocationListener, removeLocationsListener
-
-
-
-
Constructor Detail
-
FloorView
public FloorView(@NotNull @NotNull ItemSet itemSet)Creates a new instance.- Parameters:
itemSet- the item set to use
-
-
Method Detail
-
getCurrentFloorTag
public int getCurrentFloorTag()
Returns the current floor location.- Returns:
- the current floor location: a container's tag or
0
-
getSize
public int getSize()
Description copied from interface:ItemViewReturns the number of items.- Returns:
- the number of items
-
-