java.lang.Object
mod.chloeprime.gunsmithlib.common.gunpack_extension.shared.potion_effect.PotionEffectData

public class PotionEffectData extends Object
子弹命中施加药水效果
从以下版本开始:
4.3.0
  • 构造器详细资料

    • PotionEffectData

      public PotionEffectData()
  • 方法详细资料

    • getEffect

      public final Optional<net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect>> getEffect()
    • getDuration

      public final int getDuration()
    • getLevel

      public final int getLevel()
    • isAmbient

      public final boolean isAmbient()
    • isVisible

      public final boolean isVisible()
    • willShowIcon

      public final boolean willShowIcon()
    • getChance

      public final float getChance()
    • getMaxStackLevel

      public final int getMaxStackLevel()
    • getAreaCloudLevel

      public final int getAreaCloudLevel()
    • getAreaCloudChance

      public final float getAreaCloudChance()
    • applyTo

      public void applyTo(net.minecraft.world.entity.LivingEntity target)
    • applyTo

      public boolean applyTo(AreaEffectCloud3D cloud)
    • applyTo

      public boolean applyTo(net.minecraft.util.RandomSource random, Function<net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect>,@Nullable net.minecraft.world.effect.MobEffectInstance> current, Consumer<net.minecraft.world.effect.MobEffectInstance> target, boolean isCloud)