blob: 0759a66a72078380be439718b2a8e888657c0982 [file] [log] [blame] [raw]
package codechicken.multipart.scalatraits
import codechicken.multipart.TileMultipartClient
import codechicken.multipart.IRandomDisplayTick
import java.util.Random
/**
* Saves processor time looping on tiles that don't need it
*/
trait TRandomDisplayTickTile extends TileMultipartClient
{
override def randomDisplayTick(random:Random)
{
for(p@(_p: IRandomDisplayTick) <- partList.iterator)
p.randomDisplayTick(random)
}
}