Class EntityHurtPlayerCriterion.Conditions

java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.EntityHurtPlayerCriterion.Conditions
All Implemented Interfaces:
CriterionConditions
Enclosing class:
EntityHurtPlayerCriterion

public static class EntityHurtPlayerCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official bl$a
intermediary net/minecraft/class_2044$class_2046
named net/minecraft/advancement/criterion/EntityHurtPlayerCriterion$Conditions
  • Field Details

    • damage

      private final DamagePredicate damage
      Mappings:
      Namespace Name Mixin selector
      official a Lbl$a;a:Lbb;
      intermediary field_9593 Lnet/minecraft/class_2044$class_2046;field_9593:Lnet/minecraft/class_2019;
      named damage Lnet/minecraft/advancement/criterion/EntityHurtPlayerCriterion$Conditions;damage:Lnet/minecraft/predicate/DamagePredicate;
  • Constructor Details

    • Conditions

      public Conditions(EntityPredicate.Extended player, DamagePredicate damage)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbl$a;<init>(Lbm$b;Lbb;)V
      intermediary <init> Lnet/minecraft/class_2044$class_2046;<init>(Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_2019;)V
      named <init> Lnet/minecraft/advancement/criterion/EntityHurtPlayerCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/DamagePredicate;)V
  • Method Details

    • create

      public static EntityHurtPlayerCriterion.Conditions create()
      Mappings:
      Namespace Name Mixin selector
      official c Lbl$a;c()Lbl$a;
      intermediary method_35210 Lnet/minecraft/class_2044$class_2046;method_35210()Lnet/minecraft/class_2044$class_2046;
      named create Lnet/minecraft/advancement/criterion/EntityHurtPlayerCriterion$Conditions;create()Lnet/minecraft/advancement/criterion/EntityHurtPlayerCriterion$Conditions;
    • create

      public static EntityHurtPlayerCriterion.Conditions create(DamagePredicate predicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lbl$a;a(Lbb;)Lbl$a;
      intermediary method_35209 Lnet/minecraft/class_2044$class_2046;method_35209(Lnet/minecraft/class_2019;)Lnet/minecraft/class_2044$class_2046;
      named create Lnet/minecraft/advancement/criterion/EntityHurtPlayerCriterion$Conditions;create(Lnet/minecraft/predicate/DamagePredicate;)Lnet/minecraft/advancement/criterion/EntityHurtPlayerCriterion$Conditions;
    • create

      public static EntityHurtPlayerCriterion.Conditions create(DamagePredicate.Builder damageBuilder)
      Mappings:
      Namespace Name Mixin selector
      official a Lbl$a;a(Lbb$a;)Lbl$a;
      intermediary method_8908 Lnet/minecraft/class_2044$class_2046;method_8908(Lnet/minecraft/class_2019$class_2020;)Lnet/minecraft/class_2044$class_2046;
      named create Lnet/minecraft/advancement/criterion/EntityHurtPlayerCriterion$Conditions;create(Lnet/minecraft/predicate/DamagePredicate$Builder;)Lnet/minecraft/advancement/criterion/EntityHurtPlayerCriterion$Conditions;
    • matches

      public boolean matches(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked)
      Mappings:
      Namespace Name Mixin selector
      official a Lbl$a;a(Labs;Lasp;FFZ)Z
      intermediary method_8907 Lnet/minecraft/class_2044$class_2046;method_8907(Lnet/minecraft/class_3222;Lnet/minecraft/class_1282;FFZ)Z
      named matches Lnet/minecraft/advancement/criterion/EntityHurtPlayerCriterion$Conditions;matches(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/entity/damage/DamageSource;FFZ)Z
    • toJson

      public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
      Specified by:
      toJson in interface CriterionConditions
      Overrides:
      toJson in class AbstractCriterionConditions
      Mappings:
      Namespace Name Mixin selector
      official a Lam;a(Lcq;)Lcom/google/gson/JsonObject;
      intermediary method_807 Lnet/minecraft/class_184;method_807(Lnet/minecraft/class_5267;)Lcom/google/gson/JsonObject;
      named toJson Lnet/minecraft/advancement/criterion/CriterionConditions;toJson(Lnet/minecraft/predicate/entity/AdvancementEntityPredicateSerializer;)Lcom/google/gson/JsonObject;