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 Component
formatDuration
(MobEffectInstance effect, float durationFactor, float ticksPerSecond) static int
getDigSpeedAmplification
(LivingEntity entity) static boolean
hasDigSpeed
(LivingEntity entity) static boolean
hasWaterBreathing
(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)
-