Class TemplateMobEffect

java.lang.Object
com.github.thedeathlycow.thermoo.api.temperature.status.v2.effect.TemplateMobEffect

public final class TemplateMobEffect extends Object
A class which stores template data for producing new instances of MobEffectInstance.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<TemplateMobEffect>
    The codec for this type.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether this is an ambient effect
    @Range(from=0L,to=255L) int
    The amplifier of the effect instance
    @Range(from=0L,to=2147483647L) int
    The duration of the effect instance in ticks
    net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect>
    The mob effect type
    boolean
    Whether the icon for the effect should be shown on the client
    boolean
    Whether this effect's particles should be visible

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<TemplateMobEffect> CODEC
      The codec for this type.
  • Method Details

    • effect

      public net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> effect()
      The mob effect type
    • duration

      public @Range(from=0L,to=2147483647L) int duration()
      The duration of the effect instance in ticks
    • amplifier

      public @Range(from=0L,to=255L) int amplifier()
      The amplifier of the effect instance
    • ambient

      public boolean ambient()
      Whether this is an ambient effect
    • visible

      public boolean visible()
      Whether this effect's particles should be visible
    • showIcon

      public boolean showIcon()
      Whether the icon for the effect should be shown on the client