Class EffectInstanceHelper

java.lang.Object
io.github.icrazyblaze.twitchmod.util.EffectInstanceHelper

public class EffectInstanceHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.effect.MobEffectInstance
    effect​(net.minecraft.world.effect.MobEffect type, int duration, int amplifier)
     
    static net.minecraft.world.effect.MobEffectInstance
    This method generates a random potion effect with a randomised duration and amplifier.

    Methods inherited from class java.lang.Object

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

    • EffectInstanceHelper

      public EffectInstanceHelper()
  • Method Details

    • getRandomEffect

      public static net.minecraft.world.effect.MobEffectInstance getRandomEffect()
      This method generates a random potion effect with a randomised duration and amplifier.
      Returns:
      The random effect
    • effect

      public static net.minecraft.world.effect.MobEffectInstance effect(net.minecraft.world.effect.MobEffect type, int duration, int amplifier)
      Returns:
      a potion effect