Class EntityEffectPredicate

java.lang.Object
net.minecraft.predicate.entity.EntityEffectPredicate

public class EntityEffectPredicate extends Object
Mappings:
Namespace Name
official ch
intermediary net/minecraft/class_2102
named net/minecraft/predicate/entity/EntityEffectPredicate
  • Field Details

    • EMPTY

      public static final EntityEffectPredicate EMPTY
      Mappings:
      Namespace Name Mixin selector
      official a Lch;a:Lch;
      intermediary field_9709 Lnet/minecraft/class_2102;field_9709:Lnet/minecraft/class_2102;
      named EMPTY Lnet/minecraft/predicate/entity/EntityEffectPredicate;EMPTY:Lnet/minecraft/predicate/entity/EntityEffectPredicate;
    • effects

      Mappings:
      Namespace Name Mixin selector
      official b Lch;b:Ljava/util/Map;
      intermediary field_9710 Lnet/minecraft/class_2102;field_9710:Ljava/util/Map;
      named effects Lnet/minecraft/predicate/entity/EntityEffectPredicate;effects:Ljava/util/Map;
  • Constructor Details

    • EntityEffectPredicate

      public EntityEffectPredicate(Map<StatusEffect,EntityEffectPredicate.EffectData> effects)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lch;<init>(Ljava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_2102;<init>(Ljava/util/Map;)V
      named <init> Lnet/minecraft/predicate/entity/EntityEffectPredicate;<init>(Ljava/util/Map;)V
  • Method Details

    • create

      public static EntityEffectPredicate create()
      Mappings:
      Namespace Name Mixin selector
      official a Lch;a()Lch;
      intermediary method_9066 Lnet/minecraft/class_2102;method_9066()Lnet/minecraft/class_2102;
      named create Lnet/minecraft/predicate/entity/EntityEffectPredicate;create()Lnet/minecraft/predicate/entity/EntityEffectPredicate;
    • withEffect

      public EntityEffectPredicate withEffect(StatusEffect statusEffect)
      Mappings:
      Namespace Name Mixin selector
      official a Lch;a(Lbdi;)Lch;
      intermediary method_9065 Lnet/minecraft/class_2102;method_9065(Lnet/minecraft/class_1291;)Lnet/minecraft/class_2102;
      named withEffect Lnet/minecraft/predicate/entity/EntityEffectPredicate;withEffect(Lnet/minecraft/entity/effect/StatusEffect;)Lnet/minecraft/predicate/entity/EntityEffectPredicate;
    • withEffect

      public EntityEffectPredicate withEffect(StatusEffect statusEffect, EntityEffectPredicate.EffectData data)
      Mappings:
      Namespace Name Mixin selector
      official a Lch;a(Lbdi;Lch$a;)Lch;
      intermediary method_35290 Lnet/minecraft/class_2102;method_35290(Lnet/minecraft/class_1291;Lnet/minecraft/class_2102$class_2103;)Lnet/minecraft/class_2102;
      named withEffect Lnet/minecraft/predicate/entity/EntityEffectPredicate;withEffect(Lnet/minecraft/entity/effect/StatusEffect;Lnet/minecraft/predicate/entity/EntityEffectPredicate$EffectData;)Lnet/minecraft/predicate/entity/EntityEffectPredicate;
    • test

      public boolean test(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lch;a(Lbdr;)Z
      intermediary method_9062 Lnet/minecraft/class_2102;method_9062(Lnet/minecraft/class_1297;)Z
      named test Lnet/minecraft/predicate/entity/EntityEffectPredicate;test(Lnet/minecraft/entity/Entity;)Z
    • test

      public boolean test(LivingEntity livingEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lch;a(Lbeg;)Z
      intermediary method_9067 Lnet/minecraft/class_2102;method_9067(Lnet/minecraft/class_1309;)Z
      named test Lnet/minecraft/predicate/entity/EntityEffectPredicate;test(Lnet/minecraft/entity/LivingEntity;)Z
    • test

      public boolean test(Map<StatusEffect,StatusEffectInstance> effects)
      Mappings:
      Namespace Name Mixin selector
      official a Lch;a(Ljava/util/Map;)Z
      intermediary method_9063 Lnet/minecraft/class_2102;method_9063(Ljava/util/Map;)Z
      named test Lnet/minecraft/predicate/entity/EntityEffectPredicate;test(Ljava/util/Map;)Z
    • fromJson

      public static EntityEffectPredicate fromJson(@Nullable @Nullable JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official a Lch;a(Lcom/google/gson/JsonElement;)Lch;
      intermediary method_9064 Lnet/minecraft/class_2102;method_9064(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2102;
      named fromJson Lnet/minecraft/predicate/entity/EntityEffectPredicate;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/entity/EntityEffectPredicate;
    • toJson

      public JsonElement toJson()
      Mappings:
      Namespace Name Mixin selector
      official b Lch;b()Lcom/google/gson/JsonElement;
      intermediary method_9068 Lnet/minecraft/class_2102;method_9068()Lcom/google/gson/JsonElement;
      named toJson Lnet/minecraft/predicate/entity/EntityEffectPredicate;toJson()Lcom/google/gson/JsonElement;