类 PotionEffectData
java.lang.Object
mod.chloeprime.gunsmithlib.common.gunpack_extension.shared.potion_effect.PotionEffectData
子弹命中施加药水效果
- 从以下版本开始:
- 4.3.0
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanapplyTo(AreaEffectCloud3D cloud) booleanapplyTo(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) voidapplyTo(net.minecraft.world.entity.LivingEntity target) final floatfinal intfinal floatfinal intfinal Optional<net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect>> final intgetLevel()final intfinal booleanfinal booleanfinal boolean
-
构造器详细资料
-
PotionEffectData
public PotionEffectData()
-
-
方法详细资料
-
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
-
applyTo
-