Condition

open class Condition

Conditions for when to flick a lever.

Constructors

Link copied to clipboard
fun Condition()

Types

Link copied to clipboard
class Delay(ticks: Int) : AutoWater.Condition

A simple delay as condition.

Link copied to clipboard
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.

Functions

Link copied to clipboard
open fun isMet(): Boolean

Checks whether the condition is met. Overridden in members.

Inheritors

Link copied to clipboard
Link copied to clipboard