|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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 |
|---|
void noteContentsAddition(Item what)
what - The item that was added.void noteContentsRemoval(Item what)
what - The item that was removed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||