org.elkoserver.server.context
Interface ContentsWatcher


public interface ContentsWatcher

Interface implemented by mods that wish to be notified when an item is added to or removed from the container they are attached to.

To enable this notification, mods may implement this interface, though only one mod per object may implement it.

This interface is only useful when implemented by subclasses of Mod that are attached to container objects of some kind.


Method Summary
 void noteContentsAddition(Item what)
          Do whatever you want when an item is added to the container.
 void noteContentsRemoval(Item what)
          Do whatever you want when an item is removed from the container.
 

Method Detail

noteContentsAddition

void noteContentsAddition(Item what)
Do whatever you want when an item is added to the container.

Parameters:
what - The item that was added.

noteContentsRemoval

void noteContentsRemoval(Item what)
Do whatever you want when an item is removed from the container.

Parameters:
what - The item that was removed.