Let's say I have a block, and a TileEntity associated with that block. The TileEntity stores a certain amount of energy (not that it matters, but it is stored in a short). The block is set to receive random update ticks, and when it does, it will balance the amount of energy it has with adjacent blocks of the same type. However, I do not want this to occur randomly and infrequently; I want it to occur on a constant, consistent basis (every 3 ticks, for example). How would I go about accomplishing this? I don't want to hook into ticks from outside the block's class if possible, because then I'd need to scan the entire loaded world for these blocks, which wouldn't be very CPU-friendly.
Thanks in advance.