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