类 MobEffectUtil
java.lang.Object
net.minecraft.world.effect.MobEffectUtil
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static List
<ServerPlayer> addEffectToPlayersAround
(ServerLevel p_216947_, Entity p_216948_, Vec3 p_216949_, double p_216950_, MobEffectInstance p_216951_, int p_216952_) static Component
formatDuration
(MobEffectInstance p_268116_, float p_268280_, float p_314720_) static int
getDigSpeedAmplification
(LivingEntity p_19587_) static boolean
hasDigSpeed
(LivingEntity p_19585_) static boolean
hasWaterBreathing
(LivingEntity p_19589_)
-
构造器详细资料
-
MobEffectUtil
public MobEffectUtil()
-
-
方法详细资料
-
formatDuration
public static Component formatDuration(MobEffectInstance p_268116_, float p_268280_, float p_314720_) -
hasDigSpeed
-
getDigSpeedAmplification
-
hasWaterBreathing
-
addEffectToPlayersAround
public static List<ServerPlayer> addEffectToPlayersAround(ServerLevel p_216947_, @Nullable Entity p_216948_, Vec3 p_216949_, double p_216950_, MobEffectInstance p_216951_, int p_216952_)
-