Mekanism-tilera-Edition/common/codechicken/multipart/INeighborTileChange.scala
2014-01-04 13:16:24 -05:00

15 lines
No EOL
469 B
Scala

package codechicken.multipart
/**
* Mixin interface for parts that want to be notified of neighbor tile change events (comparators or inventory maintainers)
*/
trait INeighborTileChange {
/**
* Returns whether this part needs calls for tile changes through one solid block
*/
def weakTileChanges():Boolean
/**
* Callback for neighbor tile changes, from same function in Block
*/
def onNeighborTileChanged(side:Int, weak:Boolean)
}