WaterState

class WaterState(onWater: Boolean, val blockPos: BlockPos, minDelay: Int = 0) : AutoWater.Condition

onWater determines whether the change to water or the change to air is expected. When set to true it will trigger once water appears.

Constructors

Link copied to clipboard
fun WaterState(x: Int, y: Int, onWater: Boolean = true, minDelay: Int = 0)

Simplified constructor that expects water at x,y on the board.

Link copied to clipboard
fun WaterState(onWater: Boolean, blockPos: BlockPos, minDelay: Int = 0)

Functions

Link copied to clipboard
open override fun isMet(): Boolean

Checks whether the specified block is Water (or air if onWater is false) and the water has been flowing ofr at least minDelay ticks.

Properties

Link copied to clipboard
val blockPos: BlockPos