Class EntityEffectPredicate.EffectData

java.lang.Object
net.minecraft.predicate.entity.EntityEffectPredicate.EffectData
Enclosing class:
EntityEffectPredicate

public static class EntityEffectPredicate.EffectData extends Object
Mappings:
Namespace Name
official ck$a
intermediary net/minecraft/class_2102$class_2103
named net/minecraft/predicate/entity/EntityEffectPredicate$EffectData
  • Field Details

    • amplifier

      private final NumberRange.IntRange amplifier
      Mappings:
      Namespace Name Mixin selector
      official a Lck$a;a:Lcj$d;
      intermediary field_9711 Lnet/minecraft/class_2102$class_2103;field_9711:Lnet/minecraft/class_2096$class_2100;
      named amplifier Lnet/minecraft/predicate/entity/EntityEffectPredicate$EffectData;amplifier:Lnet/minecraft/predicate/NumberRange$IntRange;
    • duration

      private final NumberRange.IntRange duration
      Mappings:
      Namespace Name Mixin selector
      official b Lck$a;b:Lcj$d;
      intermediary field_9713 Lnet/minecraft/class_2102$class_2103;field_9713:Lnet/minecraft/class_2096$class_2100;
      named duration Lnet/minecraft/predicate/entity/EntityEffectPredicate$EffectData;duration:Lnet/minecraft/predicate/NumberRange$IntRange;
    • ambient

      @Nullable private final @Nullable Boolean ambient
      Mappings:
      Namespace Name Mixin selector
      official c Lck$a;c:Ljava/lang/Boolean;
      intermediary field_9714 Lnet/minecraft/class_2102$class_2103;field_9714:Ljava/lang/Boolean;
      named ambient Lnet/minecraft/predicate/entity/EntityEffectPredicate$EffectData;ambient:Ljava/lang/Boolean;
    • visible

      @Nullable private final @Nullable Boolean visible
      Mappings:
      Namespace Name Mixin selector
      official d Lck$a;d:Ljava/lang/Boolean;
      intermediary field_9712 Lnet/minecraft/class_2102$class_2103;field_9712:Ljava/lang/Boolean;
      named visible Lnet/minecraft/predicate/entity/EntityEffectPredicate$EffectData;visible:Ljava/lang/Boolean;
  • Constructor Details

    • EffectData

      public EffectData(NumberRange.IntRange amplifier, NumberRange.IntRange duration, @Nullable @Nullable Boolean ambient, @Nullable @Nullable Boolean visible)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lck$a;<init>(Lcj$d;Lcj$d;Ljava/lang/Boolean;Ljava/lang/Boolean;)V
      intermediary <init> Lnet/minecraft/class_2102$class_2103;<init>(Lnet/minecraft/class_2096$class_2100;Lnet/minecraft/class_2096$class_2100;Ljava/lang/Boolean;Ljava/lang/Boolean;)V
      named <init> Lnet/minecraft/predicate/entity/EntityEffectPredicate$EffectData;<init>(Lnet/minecraft/predicate/NumberRange$IntRange;Lnet/minecraft/predicate/NumberRange$IntRange;Ljava/lang/Boolean;Ljava/lang/Boolean;)V
    • EffectData

      public EffectData()
  • Method Details

    • test

      public boolean test(@Nullable @Nullable StatusEffectInstance statusEffectInstance)
      Mappings:
      Namespace Name Mixin selector
      official a Lck$a;a(Laxe;)Z
      intermediary method_9069 Lnet/minecraft/class_2102$class_2103;method_9069(Lnet/minecraft/class_1293;)Z
      named test Lnet/minecraft/predicate/entity/EntityEffectPredicate$EffectData;test(Lnet/minecraft/entity/effect/StatusEffectInstance;)Z
    • toJson

      public JsonElement toJson()
      Mappings:
      Namespace Name Mixin selector
      official a Lck$a;a()Lcom/google/gson/JsonElement;
      intermediary method_9071 Lnet/minecraft/class_2102$class_2103;method_9071()Lcom/google/gson/JsonElement;
      named toJson Lnet/minecraft/predicate/entity/EntityEffectPredicate$EffectData;toJson()Lcom/google/gson/JsonElement;
    • fromJson

      public static EntityEffectPredicate.EffectData fromJson(JsonObject json)
      Mappings:
      Namespace Name Mixin selector
      official a Lck$a;a(Lcom/google/gson/JsonObject;)Lck$a;
      intermediary method_9070 Lnet/minecraft/class_2102$class_2103;method_9070(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_2102$class_2103;
      named fromJson Lnet/minecraft/predicate/entity/EntityEffectPredicate$EffectData;fromJson(Lcom/google/gson/JsonObject;)Lnet/minecraft/predicate/entity/EntityEffectPredicate$EffectData;