public abstract class AbstractHealingSourceBuilder<T extends HealingSource,B extends HealingSource.HealingSourceBuilder<T,B>> extends Object implements HealingSource.HealingSourceBuilder<T,B>
Modifier and Type | Field and Description |
---|---|
protected HealingType |
healingType |
protected boolean |
magical |
protected boolean |
scales |
Constructor and Description |
---|
AbstractHealingSourceBuilder() |
Modifier and Type | Method and Description |
---|---|
B |
from(T value)
Resets this builder to the values of the given built object.
|
B |
magical()
Sets that the built
HealingSource to have been a "magical"
source. |
B |
reset()
Resets this builder to a "default" state such that there is no
remaining data to set.
|
B |
scalesWithDifficulty()
Sets for the built
HealingSource to have scaled with
difficulty, usually meaning that the amount is scaled. |
B |
type(HealingType healingType)
Sets the
HealingType . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build
protected boolean scales
protected boolean magical
protected HealingType healingType
public B scalesWithDifficulty()
HealingSource.HealingSourceBuilder
HealingSource
to have scaled with
difficulty, usually meaning that the amount is scaled.scalesWithDifficulty
in interface HealingSource.HealingSourceBuilder<T extends HealingSource,B extends HealingSource.HealingSourceBuilder<T,B>>
public B magical()
HealingSource.HealingSourceBuilder
HealingSource
to have been a "magical"
source.magical
in interface HealingSource.HealingSourceBuilder<T extends HealingSource,B extends HealingSource.HealingSourceBuilder<T,B>>
public B type(HealingType healingType)
HealingSource.HealingSourceBuilder
HealingType
.type
in interface HealingSource.HealingSourceBuilder<T extends HealingSource,B extends HealingSource.HealingSourceBuilder<T,B>>
healingType
- The healing typepublic B from(T value)
ResettableBuilder
from
in interface ResettableBuilder<T extends HealingSource,B extends HealingSource.HealingSourceBuilder<T,B>>
value
- The built objectpublic B reset()
ResettableBuilder
reset
in interface ResettableBuilder<T extends HealingSource,B extends HealingSource.HealingSourceBuilder<T,B>>