org.elkoserver.server.context
Interface ContainerWatcher


public interface ContainerWatcher

Interface implemented by mods that wish to be notified when the item they are attached to has its container changed.

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 item Mods.


Method Summary
 void noteContainerChange(BasicObject oldContainer, BasicObject newContainer)
          Do whatever you want when the item's container changes.
 

Method Detail

noteContainerChange

void noteContainerChange(BasicObject oldContainer,
                         BasicObject newContainer)
Do whatever you want when the item's container changes.

Parameters:
oldContainer - The old container (which no longer contains the item at the point this method is called)
newContainer - The new container (which now contains the item)