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 ComponentformatDuration(MobEffectInstance pEffect, float pDurationFactor, float pTicksPerSecond) static intgetDigSpeedAmplification(LivingEntity pEntity) static booleanhasDigSpeed(LivingEntity pEntity) static booleanhasWaterBreathing(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)
-