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 level, Entity source, Vec3 pos, double radius, MobEffectInstance effect, int duration) static ComponentformatDuration(MobEffectInstance effect, float durationFactor, float ticksPerSecond) static intgetDigSpeedAmplification(LivingEntity entity) static booleanhasDigSpeed(LivingEntity entity) static booleanhasWaterBreathing(LivingEntity entity)
-
Constructor Details
-
MobEffectUtil
public MobEffectUtil()
-
-
Method Details
-
formatDuration
public static Component formatDuration(MobEffectInstance effect, float durationFactor, float ticksPerSecond) -
hasDigSpeed
-
getDigSpeedAmplification
-
hasWaterBreathing
-
addEffectToPlayersAround
public static List<ServerPlayer> addEffectToPlayersAround(ServerLevel level, @Nullable Entity source, Vec3 pos, double radius, MobEffectInstance effect, int duration)
-