Class StatusEffectUtil

java.lang.Object
net.minecraft.entity.effect.StatusEffectUtil

public final class StatusEffectUtil extends Object
Mappings:
Namespace Name
official bak
intermediary net/minecraft/class_1292
named net/minecraft/entity/effect/StatusEffectUtil
  • Constructor Details

    • StatusEffectUtil

      public StatusEffectUtil()
  • Method Details

    • durationToString

      public static String durationToString(StatusEffectInstance effect, float multiplier)
      Mappings:
      Namespace Name Mixin selector
      official a Lbak;a(Lbaj;F)Ljava/lang/String;
      intermediary method_5577 Lnet/minecraft/class_1292;method_5577(Lnet/minecraft/class_1293;F)Ljava/lang/String;
      named durationToString Lnet/minecraft/entity/effect/StatusEffectUtil;durationToString(Lnet/minecraft/entity/effect/StatusEffectInstance;F)Ljava/lang/String;
    • hasHaste

      public static boolean hasHaste(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbak;a(Lbbf;)Z
      intermediary method_5576 Lnet/minecraft/class_1292;method_5576(Lnet/minecraft/class_1309;)Z
      named hasHaste Lnet/minecraft/entity/effect/StatusEffectUtil;hasHaste(Lnet/minecraft/entity/LivingEntity;)Z
    • getHasteAmplifier

      public static int getHasteAmplifier(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official b Lbak;b(Lbbf;)I
      intermediary method_5575 Lnet/minecraft/class_1292;method_5575(Lnet/minecraft/class_1309;)I
      named getHasteAmplifier Lnet/minecraft/entity/effect/StatusEffectUtil;getHasteAmplifier(Lnet/minecraft/entity/LivingEntity;)I
    • hasWaterBreathing

      public static boolean hasWaterBreathing(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official c Lbak;c(Lbbf;)Z
      intermediary method_5574 Lnet/minecraft/class_1292;method_5574(Lnet/minecraft/class_1309;)Z
      named hasWaterBreathing Lnet/minecraft/entity/effect/StatusEffectUtil;hasWaterBreathing(Lnet/minecraft/entity/LivingEntity;)Z
    • addEffectToPlayersWithinDistance

      public static List<ServerPlayerEntity> addEffectToPlayersWithinDistance(ServerWorld world, @Nullable @Nullable Entity entity, Vec3d origin, double range, StatusEffectInstance statusEffectInstance, int duration)
      Mappings:
      Namespace Name Mixin selector
      official a Lbak;a(Lafo;Lbaq;Ldvs;DLbaj;I)Ljava/util/List;
      intermediary method_42143 Lnet/minecraft/class_1292;method_42143(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;Lnet/minecraft/class_243;DLnet/minecraft/class_1293;I)Ljava/util/List;
      named addEffectToPlayersWithinDistance Lnet/minecraft/entity/effect/StatusEffectUtil;addEffectToPlayersWithinDistance(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;DLnet/minecraft/entity/effect/StatusEffectInstance;I)Ljava/util/List;