类 MobEffectUtil
java.lang.Object
net.minecraft.world.effect.MobEffectUtil
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static List<ServerPlayer>
addEffectToPlayersAround
(ServerLevel pLevel, Entity pSource, Vec3 pPos, double pRadius, MobEffectInstance pEffect, int pDuration) static Component
formatDuration
(MobEffectInstance pEffect, float pDurationFactor) static int
getDigSpeedAmplification
(LivingEntity pEntity) static boolean
hasDigSpeed
(LivingEntity pEntity) static boolean
hasWaterBreathing
(LivingEntity pEntity)
-
构造器详细资料
-
MobEffectUtil
public MobEffectUtil()
-
-
方法详细资料
-
formatDuration
-
hasDigSpeed
-
getDigSpeedAmplification
-
hasWaterBreathing
-
addEffectToPlayersAround
public static List<ServerPlayer> addEffectToPlayersAround(ServerLevel pLevel, @Nullable Entity pSource, Vec3 pPos, double pRadius, MobEffectInstance pEffect, int pDuration)
-