public class FloorView extends AbstractItemView
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 0
are returned.
Constructor and Description |
---|
FloorView(@NotNull ItemSet itemSet)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getCurrentFloorTag()
Returns the current floor location.
|
@Nullable CfItem |
getItem(int index)
Returns the
CfItem in a given slot. |
int |
getSize()
Returns the number of items.
|
addLocationListener, addLocationsListener, addModified, addModifiedRange, removeLocationListener, removeLocationsListener
public FloorView(@NotNull @NotNull ItemSet itemSet)
itemSet
- the item set to usepublic int getCurrentFloorTag()
0
public int getSize()
ItemView