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;
    • tagPredicates

      private final List<TagPredicate<DamageType>> tagPredicates
      Mappings:
      Namespace Name Mixin selector
      official b Lbd;b:Ljava/util/List;
      intermediary field_42272 Lnet/minecraft/class_2022;field_42272:Ljava/util/List;
      named tagPredicates Lnet/minecraft/predicate/entity/DamageSourcePredicate;tagPredicates:Ljava/util/List;
    • directEntity

      private final EntityPredicate directEntity
      Mappings:
      Namespace Name Mixin selector
      official c Lbd;c: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 d Lbd;d: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(List<TagPredicate<DamageType>> tagPredicates, EntityPredicate directEntity, EntityPredicate sourceEntity)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbd;<init>(Ljava/util/List;Lbo;Lbo;)V
      intermediary <init> Lnet/minecraft/class_2022;<init>(Ljava/util/List;Lnet/minecraft/class_2048;Lnet/minecraft/class_2048;)V
      named <init> Lnet/minecraft/predicate/entity/DamageSourcePredicate;<init>(Ljava/util/List;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(Laig;Lben;)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(Laif;Leei;Lben;)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;
    • 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;