Class EntityPotionEffectsJS

java.lang.Object
dev.latvian.mods.kubejs.entity.EntityPotionEffectsJS

public class EntityPotionEffectsJS extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    EntityPotionEffectsJS(net.minecraft.world.entity.LivingEntity e)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> mobEffect)
     
    void
    add(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> mobEffect, int duration)
     
    void
    add(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> mobEffect, int duration, int amplifier)
     
    void
    add(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> mobEffect, int duration, int amplifier, boolean ambient, boolean showParticles)
     
    void
     
    Collection<net.minecraft.world.effect.MobEffectInstance>
     
    @Nullable net.minecraft.world.effect.MobEffectInstance
    getActive(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> mobEffect)
     
    int
    getDuration(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> mobEffect)
     
    Map<net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect>,net.minecraft.world.effect.MobEffectInstance>
     
    boolean
    isActive(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> mobEffect)
     
    boolean
    isApplicable(net.minecraft.world.effect.MobEffectInstance effect)
     

    Methods inherited from class java.lang.Object

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

    • EntityPotionEffectsJS

      public EntityPotionEffectsJS(net.minecraft.world.entity.LivingEntity e)
  • Method Details

    • clear

      public void clear()
    • getActive

      public Collection<net.minecraft.world.effect.MobEffectInstance> getActive()
    • getMap

      public Map<net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect>,net.minecraft.world.effect.MobEffectInstance> getMap()
    • isActive

      public boolean isActive(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> mobEffect)
    • getDuration

      public int getDuration(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> mobEffect)
    • getActive

      @Nullable public @Nullable net.minecraft.world.effect.MobEffectInstance getActive(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> mobEffect)
    • add

      public void add(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> mobEffect)
    • add

      public void add(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> mobEffect, int duration)
    • add

      public void add(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> mobEffect, int duration, int amplifier)
    • add

      public void add(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> mobEffect, int duration, int amplifier, boolean ambient, boolean showParticles)
    • isApplicable

      public boolean isApplicable(net.minecraft.world.effect.MobEffectInstance effect)