Class TemplateMobEffect.Builder
java.lang.Object
com.github.thedeathlycow.thermoo.api.temperature.status.v2.effect.TemplateMobEffect.Builder
- Enclosing class:
TemplateMobEffect
-
Method Summary
Modifier and TypeMethodDescriptionambient()Makes this an ambient effect.build()Creates a newTemplateMobEffectfrom this builder.Makes this effects icon invisible on the client.Makes the particles of this effect invisible.withAmplifier(int amplifier) Sets the amplifier of the effect.withDuration(int duration) Sets the duration of the effect.
-
Method Details
-
withDuration
Sets the duration of the effect.- Parameters:
duration- An int that is greater than or equal to 0.- Returns:
- Returns this builder.
- Throws:
IllegalArgumentException- if the duration is outside the specified bound
-
withAmplifier
Sets the amplifier of the effect.- Parameters:
amplifier- An int that is between 0 and 255 (inclusive).- Returns:
- Returns this builder.
- Throws:
IllegalArgumentException- if the amplifier is outside the specified bound
-
ambient
Makes this an ambient effect.- Returns:
- Returns this builder.
-
invisible
Makes the particles of this effect invisible.- Returns:
- Returns this builder.
-
doNotShowIcon
Makes this effects icon invisible on the client.- Returns:
- Returns this builder.
-
build
Creates a newTemplateMobEffectfrom this builder.
-