 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.items;
25 import org.jetbrains.annotations.NotNull;
26 import org.jetbrains.annotations.Nullable;
54 @SuppressWarnings(
"FieldCanBeLocal")
58 public void playerChanged(@Nullable
final CfItem player) {
63 public void openContainerChanged(
final int tag) {
76 public void itemChanged(
final int tag) {
83 public void itemRemoved(
final int tag) {
88 public void inventoryAdded(
final int tag,
final int index, @NotNull
final CfItem item) {
94 public void inventoryRemoved(
final int tag,
final int index) {
130 final int prevLastIndex =
getSize()-1;
134 final int nextLastIndex =
getSize()-1;
CfItem getInventoryItem(final int tag, final int index)
Returns a CfItem from the inventory of an item.
Abstract base class for ItemView implementing classes.
final ItemSet itemSet
The ItemSet to monitor.
void addInventoryListener(final int tag, @NotNull final ItemListener listener)
Adds an ItemListener to be notified about changes.
Model class maintaining the CfItems known to the player.
void setCurrentFloorTag(final int currentFloorTag)
Updates the currently opened container that's contents are shown in the floor view.
int getCurrentFloorTag()
Returns the current floor location.
CfItem getItemByTag(final int tag)
Returns an item by tag.
Interface for listeners for changes of item locations.
FloorView(@NotNull final ItemSet itemSet)
Creates a new instance.
int currentFloorTag
The tag of the currently shown container or.
int getOpenContainer()
Returns the currently opened container.
int getOffset()
Returns the number of non-inventory items to be displayed on the floor.
The representation of a Crossfire Item, client-side.
int getNumberOfItemsByLocation(final int location)
Returns the number of items in a given location.
int getSize()
Returns the number of items.
final ItemSetListener itemSetListener
The ItemSetListener for detecting opened or closed containers.
void addModified(final int index)
Marks a slot as modified.
void addItemSetListener(@NotNull final ItemSetListener listener)
Adds an ItemSetListener to be notified about changes.
void addModifiedRange(final int firstIndex, final int lastIndex)
Marks a range of slots as modified.
Provides a view to all items comprising the current floor view.
final ItemListener itemListener
The ItemListener attached to the current floor object.
CfItem getItem(final int index)
Returns the CfItem in a given slot.
Interface for listeners in ItemSet related events.
void removeInventoryListener(final int tag, @NotNull final ItemListener listener)
Removes an ItemListener to be notified about changes.