public interface ContentsWatcher
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.
Modifier and Type | Method and Description |
---|---|
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.
|
void noteContentsAddition(Item what)
what
- The item that was added.void noteContentsRemoval(Item what)
what
- The item that was removed.Copyright © 2017. All rights reserved.