Class DamageSourcePredicate

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

public class DamageSourcePredicate extends Object
Mappings:
Namespace Name
official bb
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 Lbb;a:Lbb;
      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;
    • field_42272

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

      private final EntityPredicate directEntity
      Mappings:
      Namespace Name Mixin selector
      official c Lbb;c:Lbm;
      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 Lbb;d:Lbm;
      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

  • Method Details

    • test

      public boolean test(ServerPlayerEntity player, DamageSource damageSource)
      Mappings:
      Namespace Name Mixin selector
      official a Lbb;a(Laij;Lbee;)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 Lbb;a(Laii;Lecb;Lbee;)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 Lbb;a(Lcom/google/gson/JsonElement;)Lbb;
      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 Lbb;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;