public static final class HealthModifier.Builder extends Object implements ResettableBuilder<HealthModifier,HealthModifier.Builder>
HealthModifier
s, for use in both plugin
and implementation requirements.Modifier and Type | Method and Description |
---|---|
HealthModifier |
build()
|
static HealthModifier.Builder |
builder()
Creates a new
HealthModifier.Builder . |
HealthModifier.Builder |
cause(Cause cause)
Sets the
Cause for the HealthModifier to build. |
HealthModifier.Builder |
from(HealthModifier value)
Resets this builder to the values of the given built object.
|
HealthModifier.Builder |
reset()
Resets this builder to a "default" state such that there is no
remaining data to set.
|
HealthModifier.Builder |
type(HealthModifierType healthModifierType)
Sets the
HealthModifierType for the HealthModifier to
build. |
public static HealthModifier.Builder builder()
HealthModifier.Builder
.public HealthModifier.Builder type(HealthModifierType healthModifierType)
HealthModifierType
for the HealthModifier
to
build.healthModifierType
- The health modifier typepublic HealthModifier.Builder cause(Cause cause)
Cause
for the HealthModifier
to build.cause
- The cause for the health modifierpublic HealthModifier build()
public HealthModifier.Builder from(HealthModifier value)
ResettableBuilder
from
in interface ResettableBuilder<HealthModifier,HealthModifier.Builder>
value
- The built objectpublic HealthModifier.Builder reset()
ResettableBuilder
reset
in interface ResettableBuilder<HealthModifier,HealthModifier.Builder>