Class DamageSourcePredicate

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

public class DamageSourcePredicate extends Object
Mappings:
Namespace Name
official bd
intermediary net/minecraft/class_2022
named net/minecraft/predicate/entity/DamageSourcePredicate
  • Field Details

    • EMPTY

      public static final DamageSourcePredicate EMPTY
      Mappings:
      Namespace Name Mixin selector
      official a Lbd;a:Lbd;
      intermediary field_9533 Lnet/minecraft/class_2022;field_9533:Lnet/minecraft/class_2022;
      named EMPTY Lnet/minecraft/predicate/entity/DamageSourcePredicate;EMPTY:Lnet/minecraft/predicate/entity/DamageSourcePredicate;
    • isProjectile

      @Nullable private final @Nullable Boolean isProjectile
      Mappings:
      Namespace Name Mixin selector
      official b Lbd;b:Ljava/lang/Boolean;
      intermediary field_9535 Lnet/minecraft/class_2022;field_9535:Ljava/lang/Boolean;
      named isProjectile Lnet/minecraft/predicate/entity/DamageSourcePredicate;isProjectile:Ljava/lang/Boolean;
    • isExplosion

      @Nullable private final @Nullable Boolean isExplosion
      Mappings:
      Namespace Name Mixin selector
      official c Lbd;c:Ljava/lang/Boolean;
      intermediary field_9536 Lnet/minecraft/class_2022;field_9536:Ljava/lang/Boolean;
      named isExplosion Lnet/minecraft/predicate/entity/DamageSourcePredicate;isExplosion:Ljava/lang/Boolean;
    • bypassesArmor

      @Nullable private final @Nullable Boolean bypassesArmor
      Mappings:
      Namespace Name Mixin selector
      official d Lbd;d:Ljava/lang/Boolean;
      intermediary field_9532 Lnet/minecraft/class_2022;field_9532:Ljava/lang/Boolean;
      named bypassesArmor Lnet/minecraft/predicate/entity/DamageSourcePredicate;bypassesArmor:Ljava/lang/Boolean;
    • bypassesInvulnerability

      @Nullable private final @Nullable Boolean bypassesInvulnerability
      Mappings:
      Namespace Name Mixin selector
      official e Lbd;e:Ljava/lang/Boolean;
      intermediary field_9531 Lnet/minecraft/class_2022;field_9531:Ljava/lang/Boolean;
      named bypassesInvulnerability Lnet/minecraft/predicate/entity/DamageSourcePredicate;bypassesInvulnerability:Ljava/lang/Boolean;
    • bypassesMagic

      @Nullable private final @Nullable Boolean bypassesMagic
      Mappings:
      Namespace Name Mixin selector
      official f Lbd;f:Ljava/lang/Boolean;
      intermediary field_9537 Lnet/minecraft/class_2022;field_9537:Ljava/lang/Boolean;
      named bypassesMagic Lnet/minecraft/predicate/entity/DamageSourcePredicate;bypassesMagic:Ljava/lang/Boolean;
    • isFire

      @Nullable private final @Nullable Boolean isFire
      Mappings:
      Namespace Name Mixin selector
      official g Lbd;g:Ljava/lang/Boolean;
      intermediary field_9540 Lnet/minecraft/class_2022;field_9540:Ljava/lang/Boolean;
      named isFire Lnet/minecraft/predicate/entity/DamageSourcePredicate;isFire:Ljava/lang/Boolean;
    • isMagic

      @Nullable private final @Nullable Boolean isMagic
      Mappings:
      Namespace Name Mixin selector
      official h Lbd;h:Ljava/lang/Boolean;
      intermediary field_9541 Lnet/minecraft/class_2022;field_9541:Ljava/lang/Boolean;
      named isMagic Lnet/minecraft/predicate/entity/DamageSourcePredicate;isMagic:Ljava/lang/Boolean;
    • isLightning

      @Nullable private final @Nullable Boolean isLightning
      Mappings:
      Namespace Name Mixin selector
      official i Lbd;i:Ljava/lang/Boolean;
      intermediary field_9538 Lnet/minecraft/class_2022;field_9538:Ljava/lang/Boolean;
      named isLightning Lnet/minecraft/predicate/entity/DamageSourcePredicate;isLightning:Ljava/lang/Boolean;
    • directEntity

      private final EntityPredicate directEntity
      Mappings:
      Namespace Name Mixin selector
      official j Lbd;j:Lbo;
      intermediary field_9534 Lnet/minecraft/class_2022;field_9534:Lnet/minecraft/class_2048;
      named directEntity Lnet/minecraft/predicate/entity/DamageSourcePredicate;directEntity:Lnet/minecraft/predicate/entity/EntityPredicate;
    • sourceEntity

      private final EntityPredicate sourceEntity
      Mappings:
      Namespace Name Mixin selector
      official k Lbd;k:Lbo;
      intermediary field_9539 Lnet/minecraft/class_2022;field_9539:Lnet/minecraft/class_2048;
      named sourceEntity Lnet/minecraft/predicate/entity/DamageSourcePredicate;sourceEntity:Lnet/minecraft/predicate/entity/EntityPredicate;
  • Constructor Details

    • DamageSourcePredicate

      public DamageSourcePredicate(@Nullable @Nullable Boolean isProjectile, @Nullable @Nullable Boolean isExplosion, @Nullable @Nullable Boolean bypassesArmor, @Nullable @Nullable Boolean bypassesInvulnerability, @Nullable @Nullable Boolean bypassesMagic, @Nullable @Nullable Boolean isFire, @Nullable @Nullable Boolean isMagic, @Nullable @Nullable Boolean isLightning, EntityPredicate directEntity, EntityPredicate sourceEntity)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbd;<init>(Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lbo;Lbo;)V
      intermediary <init> Lnet/minecraft/class_2022;<init>(Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lnet/minecraft/class_2048;Lnet/minecraft/class_2048;)V
      named <init> Lnet/minecraft/predicate/entity/DamageSourcePredicate;<init>(Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lnet/minecraft/predicate/entity/EntityPredicate;Lnet/minecraft/predicate/entity/EntityPredicate;)V
  • Method Details

    • test

      public boolean test(ServerPlayerEntity player, DamageSource damageSource)
      Mappings:
      Namespace Name Mixin selector
      official a Lbd;a(Lagh;Lbaw;)Z
      intermediary method_8847 Lnet/minecraft/class_2022;method_8847(Lnet/minecraft/class_3222;Lnet/minecraft/class_1282;)Z
      named test Lnet/minecraft/predicate/entity/DamageSourcePredicate;test(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/entity/damage/DamageSource;)Z
    • test

      public boolean test(ServerWorld world, Vec3d pos, DamageSource damageSource)
      Mappings:
      Namespace Name Mixin selector
      official a Lbd;a(Lagg;Ldwq;Lbaw;)Z
      intermediary method_8845 Lnet/minecraft/class_2022;method_8845(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;Lnet/minecraft/class_1282;)Z
      named test Lnet/minecraft/predicate/entity/DamageSourcePredicate;test(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/damage/DamageSource;)Z
    • fromJson

      public static DamageSourcePredicate fromJson(@Nullable @Nullable JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official a Lbd;a(Lcom/google/gson/JsonElement;)Lbd;
      intermediary method_8846 Lnet/minecraft/class_2022;method_8846(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2022;
      named fromJson Lnet/minecraft/predicate/entity/DamageSourcePredicate;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/entity/DamageSourcePredicate;
    • getBoolean

      @Nullable private static @Nullable Boolean getBoolean(JsonObject obj, String name)
      Mappings:
      Namespace Name Mixin selector
      official a Lbd;a(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/Boolean;
      intermediary method_8849 Lnet/minecraft/class_2022;method_8849(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/Boolean;
      named getBoolean Lnet/minecraft/predicate/entity/DamageSourcePredicate;getBoolean(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/Boolean;
    • toJson

      public JsonElement toJson()
      Mappings:
      Namespace Name Mixin selector
      official a Lbd;a()Lcom/google/gson/JsonElement;
      intermediary method_8848 Lnet/minecraft/class_2022;method_8848()Lcom/google/gson/JsonElement;
      named toJson Lnet/minecraft/predicate/entity/DamageSourcePredicate;toJson()Lcom/google/gson/JsonElement;
    • addProperty

      private void addProperty(JsonObject json, String key, @Nullable @Nullable Boolean value)
      Mappings:
      Namespace Name Mixin selector
      official a Lbd;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/Boolean;)V
      intermediary method_8850 Lnet/minecraft/class_2022;method_8850(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/Boolean;)V
      named addProperty Lnet/minecraft/predicate/entity/DamageSourcePredicate;addProperty(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/Boolean;)V