Package net.minecraft.world.effect
Class MobEffectUtil
java.lang.Object
net.minecraft.world.effect.MobEffectUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List
<ServerPlayer> addEffectToPlayersAround
(ServerLevel pLevel, Entity pSource, Vec3 pPos, double pRadius, MobEffectInstance pEffect, int pDuration) static Component
formatDuration
(MobEffectInstance pEffect, float pDurationFactor, float pTicksPerSecond) static int
getDigSpeedAmplification
(LivingEntity pEntity) static boolean
hasDigSpeed
(LivingEntity pEntity) static boolean
hasWaterBreathing
(LivingEntity pEntity)
-
Constructor Details
-
MobEffectUtil
public MobEffectUtil()
-
-
Method Details
-
formatDuration
public static Component formatDuration(MobEffectInstance pEffect, float pDurationFactor, float pTicksPerSecond) -
hasDigSpeed
-
getDigSpeedAmplification
-
hasWaterBreathing
-
addEffectToPlayersAround
public static List<ServerPlayer> addEffectToPlayersAround(ServerLevel pLevel, @Nullable Entity pSource, Vec3 pPos, double pRadius, MobEffectInstance pEffect, int pDuration)
-