Class MobEffectEffect.Builder
java.lang.Object
com.github.thedeathlycow.thermoo.api.temperature.status.v2.effect.MobEffectEffect.Builder
- Enclosing class:
MobEffectEffect
Builder for this effect.
-
Method Summary
Modifier and TypeMethodDescriptionaddEffect(TemplateMobEffect.Builder effect) Adds a template effect to this builder.addEffects(Collection<TemplateMobEffect.Builder> effects) Adds a collection of template effects to this builder.build()Creates a new mob effect-effect from this builder.
-
Method Details
-
addEffect
Adds a template effect to this builder.- Parameters:
effect- The effect to add, may not benull.- Returns:
- Returns this builder.
- Throws:
NullPointerException- if theeffectisnull.
-
addEffects
Adds a collection of template effects to this builder. Anynullentries in the collection will be skipped.- Parameters:
effects- The effects to add, may not benull.- Returns:
- Returns this builder.
- Throws:
NullPointerException- ifeffectsisnull.
-
build
Creates a new mob effect-effect from this builder.
-