Class TemplateMobEffect.Builder

java.lang.Object
com.github.thedeathlycow.thermoo.api.temperature.status.v2.effect.TemplateMobEffect.Builder
Enclosing class:
TemplateMobEffect

public static final class TemplateMobEffect.Builder extends Object
  • Method Details

    • withDuration

      public TemplateMobEffect.Builder withDuration(int duration)
      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

      public TemplateMobEffect.Builder withAmplifier(int amplifier)
      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

      public TemplateMobEffect.Builder ambient()
      Makes this an ambient effect.
      Returns:
      Returns this builder.
    • invisible

      public TemplateMobEffect.Builder invisible()
      Makes the particles of this effect invisible.
      Returns:
      Returns this builder.
    • doNotShowIcon

      public TemplateMobEffect.Builder doNotShowIcon()
      Makes this effects icon invisible on the client.
      Returns:
      Returns this builder.
    • build

      public TemplateMobEffect build()
      Creates a new TemplateMobEffect from this builder.