public interface ContainerWatcher
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.
Modifier and Type | Method and Description |
---|---|
void |
noteContainerChange(BasicObject oldContainer,
BasicObject newContainer)
Do whatever you want when the item's container changes.
|
void noteContainerChange(BasicObject oldContainer, BasicObject newContainer)
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)Copyright © 2017. All rights reserved.