Class AbstractModifier<T>
- java.lang.Object
-
- me.nemo_64.betterinputs.api.input.modifier.AbstractModifier<T>
-
- Direct Known Subclasses:
AttemptModifier
,TimeoutModifier
public abstract class AbstractModifier<T> extends Object
-
-
Constructor Summary
Constructors Constructor Description AbstractModifier(boolean ticking)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isExpired()
Gets if the modifier is expired or notboolean
isTicking()
Gets if the modifier is a ticking modifier or notvoid
onDone(InputProvider<T> provider)
Is called once the input process is donevoid
onExpire(InputProvider<T> provider)
Is called once the modifier expiresvoid
tick()
Is called every tick if the modifier is a ticking modifier
-
-
-
Method Detail
-
isTicking
public final boolean isTicking()
Gets if the modifier is a ticking modifier or not- Returns:
- if the modifier is ticking
-
isExpired
public final boolean isExpired()
Gets if the modifier is expired or not- Returns:
- if the modifier is expired
-
tick
public void tick()
Is called every tick if the modifier is a ticking modifier
-
onExpire
public void onExpire(InputProvider<T> provider)
Is called once the modifier expires- Parameters:
provider
- the input provider that this modifier was set to
-
onDone
public void onDone(InputProvider<T> provider)
Is called once the input process is done- Parameters:
provider
- the input provider that this modifier was set to
-
-