Package dev.latvian.mods.kubejs.entity
Class EntityPotionEffectsJS
java.lang.Object
dev.latvian.mods.kubejs.entity.EntityPotionEffectsJS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> mobEffect) voidadd(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> mobEffect, int duration) voidadd(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> mobEffect, int duration, int amplifier) voidadd(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> mobEffect, int duration, int amplifier, boolean ambient, boolean showParticles) voidclear()Collection<net.minecraft.world.effect.MobEffectInstance> @Nullable net.minecraft.world.effect.MobEffectInstancegetActive(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> mobEffect) intgetDuration(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> getMap()booleanisActive(net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> mobEffect) booleanisApplicable(net.minecraft.world.effect.MobEffectInstance effect)
-
Constructor Details
-
EntityPotionEffectsJS
public EntityPotionEffectsJS(net.minecraft.world.entity.LivingEntity e)
-
-
Method Details
-
clear
public void clear() -
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)
-