Class MobEffectUtil

java.lang.Object
net.minecraft.world.effect.MobEffectUtil

public final class MobEffectUtil extends Object
  • Constructor Details

    • MobEffectUtil

      public MobEffectUtil()
  • Method Details

    • formatDuration

      public static String formatDuration(MobEffectInstance p_19582_, float p_19583_)
    • hasDigSpeed

      public static boolean hasDigSpeed(LivingEntity p_19585_)
    • getDigSpeedAmplification

      public static int getDigSpeedAmplification(LivingEntity p_19587_)
    • hasWaterBreathing

      public static boolean hasWaterBreathing(LivingEntity p_19589_)
    • addEffectToPlayersAround

      public static List<ServerPlayer> addEffectToPlayersAround(ServerLevel p_216947_, @Nullable Entity p_216948_, Vec3 p_216949_, double p_216950_, MobEffectInstance p_216951_, int p_216952_)